diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2019-11-14 05:42:34 +1100 |
|---|---|---|
| committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-13 13:42:34 -0500 |
| commit | 9837d324a7c3f5e1c850dadabfd670edad4aa85b (patch) | |
| tree | a81de8e9e15f64edd2ccb6e30a351ca3b2305035 /std/encoding/csv_test.ts | |
| parent | 279191ad9447c66fe1278589a7be242d035bb68b (diff) | |
Update to TypeScript 3.7 (#3275)
and update to prettier 1.19
Also, update `assert()` and remove not null assertions where possibly
in `cli`.
Closes #3273
Diffstat (limited to 'std/encoding/csv_test.ts')
| -rw-r--r-- | std/encoding/csv_test.ts | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/std/encoding/csv_test.ts b/std/encoding/csv_test.ts index 88a3a24d7..65a86a353 100644 --- a/std/encoding/csv_test.ts +++ b/std/encoding/csv_test.ts @@ -20,7 +20,10 @@ const testCases = [ { Name: "CRLF", Input: "a,b\r\nc,d\r\n", - Output: [["a", "b"], ["c", "d"]] + Output: [ + ["a", "b"], + ["c", "d"] + ] }, { Name: "BareCR", @@ -64,12 +67,18 @@ const testCases = [ { Name: "BlankLine", Input: "a,b,c\n\nd,e,f\n\n", - Output: [["a", "b", "c"], ["d", "e", "f"]] + Output: [ + ["a", "b", "c"], + ["d", "e", "f"] + ] }, { Name: "BlankLineFieldCount", Input: "a,b,c\n\nd,e,f\n\n", - Output: [["a", "b", "c"], ["d", "e", "f"]], + Output: [ + ["a", "b", "c"], + ["d", "e", "f"] + ], UseFieldsPerRecord: true, FieldsPerRecord: 0 }, @@ -93,7 +102,10 @@ const testCases = [ { Name: "NoComment", Input: "#1,2,3\na,b,c", - Output: [["#1", "2", "3"], ["a", "b", "c"]] + Output: [ + ["#1", "2", "3"], + ["a", "b", "c"] + ] }, { Name: "LazyQuotes", @@ -159,7 +171,10 @@ const testCases = [ { Name: "FieldCount", Input: "a,b,c\nd,e", - Output: [["a", "b", "c"], ["d", "e"]] + Output: [ + ["a", "b", "c"], + ["d", "e"] + ] }, { Name: "TrailingCommaEOF", @@ -186,7 +201,11 @@ const testCases = [ { Name: "TrailingCommaLine3", Input: "a,b,c\nd,e,f\ng,hi,", - Output: [["a", "b", "c"], ["d", "e", "f"], ["g", "hi", ""]], + Output: [ + ["a", "b", "c"], + ["d", "e", "f"], + ["g", "hi", ""] + ], TrimLeadingSpace: true }, { @@ -223,13 +242,19 @@ x,,, { Name: "TrailingCommaIneffective1", Input: "a,b,\nc,d,e", - Output: [["a", "b", ""], ["c", "d", "e"]], + Output: [ + ["a", "b", ""], + ["c", "d", "e"] + ], TrimLeadingSpace: true }, { Name: "ReadAllReuseRecord", Input: "a,b\nc,d", - Output: [["a", "b"], ["c", "d"]], + Output: [ + ["a", "b"], + ["c", "d"] + ], ReuseRecord: true }, // { @@ -496,7 +521,10 @@ const parseTestCases = [ name: "multiline", in: "a,b,c\ne,f,g\n", header: false, - result: [["a", "b", "c"], ["e", "f", "g"]] + result: [ + ["a", "b", "c"], + ["e", "f", "g"] + ] }, { name: "header mapping boolean", |
