Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
- name: Report test coverage
if: success()
continue-on-error: true
run: luacov-coveralls -e .luarocks
run: luacov-coveralls -e lua_install
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}
18 changes: 0 additions & 18 deletions spec/parse_encode_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,6 @@ describe("csv encode without quotes", function()
end
end)

--[[ This breaks simple_crlf.
describe("csv encode with missing keys", function()
for _, value in ipairs(files) do
it("should handle " .. value, function()
local jsonFile = loadFile("spec/json/" .. value .. ".json")
local jsonDecode = cjson.decode(jsonFile)
local reEncoded = ftcsv.parse(ftcsv.encode(
jsonDecode, ",", {
fieldsToKeep = {"a", "b", "c", "d"},
allowMissingKeys = true,
}
), ",", {loadFromString=true})
assert.are.same(jsonDecode, reEncoded)
end)
end
end)
--]]

describe("csv encode with missing keys", function()
it("should handle missing_keys", function()
local jsonFile = loadFile("spec/json/missing_keys.json")
Expand Down