Handle scalars in csv, xml files

This commit is contained in:
Mike Farah
2023-03-27 13:54:24 +11:00
parent 1b0a62d08d
commit 8d516ce535
3 changed files with 20 additions and 0 deletions
+8
View File
@@ -126,6 +126,14 @@ var csvScenarios = []formatScenario{
expected: expectedYamlFromCSV,
scenarioType: "decode-csv-object",
},
{
description: "Scalar roundtrip",
skipDoc: true,
input: "mike\ncat",
expression: ".[0].mike",
expected: "cat\n",
scenarioType: "roundtrip-csv",
},
{
description: "Parse TSV into an array of objects",
subdescription: "First row is assumed to be the header row.",