From c069605ae00bfb6dbc8ab962edea914855f1e0a9 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 11 Dec 2024 22:19:11 +0000 Subject: [PATCH] fix tests by using / instead of \ in example data --- tests/data/example-iso-8859-1.csv | 4 ++-- tests/data/example-separator.csv | 2 +- tests/data/example.csv | 2 +- tests/data/example.json | 2 +- tests/data/example.jsonl | 2 +- tests/data/example.tsv | 2 +- tests/export-csv-separator.sh | 2 +- tests/import-csv-blankCellsAsStrings.sh | 2 +- tests/import-csv-columnNames.sh | 2 +- tests/import-csv-encoding.sh | 2 +- tests/import-csv-guessCellValueTypes.sh | 4 ++-- tests/import-csv-headerLines.sh | 2 +- tests/import-csv-ignoreLines.sh | 2 +- tests/import-csv-ignoreQuoteCharacter.sh | 4 ++-- tests/import-csv-includeArchiveFileName.sh | 4 ++-- tests/import-csv-includeFileSources.sh | 4 ++-- tests/import-csv-quoteCharacter.sh | 4 ++-- tests/import-csv-skipBlankRows.sh | 4 ++-- tests/import-csv-skipDataLines.sh | 4 ++-- tests/import-csv-trimStrings.sh | 4 ++-- tests/import-json-recordPath.sh | 2 +- tests/import-json-storeEmptyStrings.sh | 4 ++-- tests/import-json-trimStrings.sh | 4 ++-- 23 files changed, 34 insertions(+), 34 deletions(-) diff --git a/tests/data/example-iso-8859-1.csv b/tests/data/example-iso-8859-1.csv index c83fb4c..c94f5ce 100644 --- a/tests/data/example-iso-8859-1.csv +++ b/tests/data/example-iso-8859-1.csv @@ -1,4 +1,4 @@ a,b,c 1,2,3 -ä,é,ß -$,\,' +�,�,� +$,/,' diff --git a/tests/data/example-separator.csv b/tests/data/example-separator.csv index 1c0c00c..56ff228 100644 --- a/tests/data/example-separator.csv +++ b/tests/data/example-separator.csv @@ -1,4 +1,4 @@ a; b; c 1; 2; 3 0; 0; 0 -$; \; ' +$; /; ' diff --git a/tests/data/example.csv b/tests/data/example.csv index 8be467b..3e2655c 100644 --- a/tests/data/example.csv +++ b/tests/data/example.csv @@ -1,4 +1,4 @@ a,b,c 1,2,3 0,0,0 -$,\,' +$,/,' diff --git a/tests/data/example.json b/tests/data/example.json index dffb4a2..a748e83 100644 --- a/tests/data/example.json +++ b/tests/data/example.json @@ -11,7 +11,7 @@ }, { "a": "$", - "b": "\\", + "b": "/", "c": "'" } ] \ No newline at end of file diff --git a/tests/data/example.jsonl b/tests/data/example.jsonl index 49abee5..191b2e9 100644 --- a/tests/data/example.jsonl +++ b/tests/data/example.jsonl @@ -1,3 +1,3 @@ {"a":1, "b":2, "c":3} {"a":0, "b":0, "c":0} -{"a":"$", "b":"\\", "c":"'"} \ No newline at end of file +{"a":"$", "b":"/", "c":"'"} \ No newline at end of file diff --git a/tests/data/example.tsv b/tests/data/example.tsv index 8c6d4cb..673a391 100644 --- a/tests/data/example.tsv +++ b/tests/data/example.tsv @@ -1,4 +1,4 @@ a b c 1 2 3 0 0 0 -$ \ ' +$ / ' diff --git a/tests/export-csv-separator.sh b/tests/export-csv-separator.sh index 765c185..c4098a2 100644 --- a/tests/export-csv-separator.sh +++ b/tests/export-csv-separator.sh @@ -14,7 +14,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a;b;c 1;2;3 0;0;0 -$;\;' +$;/;' DATA # action diff --git a/tests/import-csv-blankCellsAsStrings.sh b/tests/import-csv-blankCellsAsStrings.sh index eb2e185..dadb37f 100644 --- a/tests/import-csv-blankCellsAsStrings.sh +++ b/tests/import-csv-blankCellsAsStrings.sh @@ -11,7 +11,7 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,2,3 0,,0 -$,\,' +$,/,' DATA cat << "DATA" > "${tmpdir}/${t}.transform" diff --git a/tests/import-csv-columnNames.sh b/tests/import-csv-columnNames.sh index a218586..f27f2f1 100644 --- a/tests/import-csv-columnNames.sh +++ b/tests/import-csv-columnNames.sh @@ -15,7 +15,7 @@ foo bar baz a b c 1 2 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-encoding.sh b/tests/import-csv-encoding.sh index 1ab8fd3..262a3aa 100644 --- a/tests/import-csv-encoding.sh +++ b/tests/import-csv-encoding.sh @@ -14,7 +14,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a b c 1 2 3 ä é ß -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-guessCellValueTypes.sh b/tests/import-csv-guessCellValueTypes.sh index 435126d..b648038 100644 --- a/tests/import-csv-guessCellValueTypes.sh +++ b/tests/import-csv-guessCellValueTypes.sh @@ -11,7 +11,7 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,2,3 01,02,03 -$,\,' +$,/,' DATA # assertion @@ -19,7 +19,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a b c 1 2 3 1 2 3 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-headerLines.sh b/tests/import-csv-headerLines.sh index bbd5d98..590ed79 100644 --- a/tests/import-csv-headerLines.sh +++ b/tests/import-csv-headerLines.sh @@ -15,7 +15,7 @@ Column 1 Column 2 Column 3 a b c 1 2 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-ignoreLines.sh b/tests/import-csv-ignoreLines.sh index 71f4c01..daf6f93 100644 --- a/tests/import-csv-ignoreLines.sh +++ b/tests/import-csv-ignoreLines.sh @@ -13,7 +13,7 @@ cp data/example.csv "${tmpdir}/${t}.csv" cat << "DATA" > "${tmpdir}/${t}.assert" 1 2 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-ignoreQuoteCharacter.sh b/tests/import-csv-ignoreQuoteCharacter.sh index 53c7336..48faa05 100644 --- a/tests/import-csv-ignoreQuoteCharacter.sh +++ b/tests/import-csv-ignoreQuoteCharacter.sh @@ -11,7 +11,7 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,"2,0",3 0,0,0 -$,\,' +$,/,' DATA # assertion @@ -19,7 +19,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a b c Column 4 1 2 0 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-includeArchiveFileName.sh b/tests/import-csv-includeArchiveFileName.sh index 157ecff..96035c5 100644 --- a/tests/import-csv-includeArchiveFileName.sh +++ b/tests/import-csv-includeArchiveFileName.sh @@ -15,10 +15,10 @@ cat << "DATA" > "${tmpdir}/${t}.assert" Archive a b c Untitled.zip 1 2 3 Untitled.zip 0 0 0 -Untitled.zip $ \ ' +Untitled.zip $ / ' Untitled.zip 1 2 3 Untitled.zip 0 0 0 -Untitled.zip $ \ ' +Untitled.zip $ / ' DATA # action diff --git a/tests/import-csv-includeFileSources.sh b/tests/import-csv-includeFileSources.sh index e0c6500..6cfaba5 100644 --- a/tests/import-csv-includeFileSources.sh +++ b/tests/import-csv-includeFileSources.sh @@ -15,10 +15,10 @@ cat << "DATA" > "${tmpdir}/${t}.assert" File a b c import-csv-includeFileSources-1.csv 1 2 3 import-csv-includeFileSources-1.csv 0 0 0 -import-csv-includeFileSources-1.csv $ \ ' +import-csv-includeFileSources-1.csv $ / ' import-csv-includeFileSources-2.csv 1 2 3 import-csv-includeFileSources-2.csv 0 0 0 -import-csv-includeFileSources-2.csv $ \ ' +import-csv-includeFileSources-2.csv $ / ' DATA # action diff --git a/tests/import-csv-quoteCharacter.sh b/tests/import-csv-quoteCharacter.sh index fc5d65d..73786b6 100644 --- a/tests/import-csv-quoteCharacter.sh +++ b/tests/import-csv-quoteCharacter.sh @@ -11,7 +11,7 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,%2,0%,3 0,0,0 -$,\,' +$,/,' DATA # assertion @@ -19,7 +19,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a b c 1 2,0 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-skipBlankRows.sh b/tests/import-csv-skipBlankRows.sh index 7fa6aec..f976ceb 100644 --- a/tests/import-csv-skipBlankRows.sh +++ b/tests/import-csv-skipBlankRows.sh @@ -11,14 +11,14 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,2,3 ,, -$,\,' +$,/,' DATA # assertion cat << "DATA" > "${tmpdir}/${t}.assert" a b c 1 2 3 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-skipDataLines.sh b/tests/import-csv-skipDataLines.sh index 6d3a92f..4fd54f2 100644 --- a/tests/import-csv-skipDataLines.sh +++ b/tests/import-csv-skipDataLines.sh @@ -11,14 +11,14 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1,2,3 0,0,0 -$,\,' +$,/,' DATA # assertion cat << "DATA" > "${tmpdir}/${t}.assert" a b c 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-csv-trimStrings.sh b/tests/import-csv-trimStrings.sh index 7596344..761d821 100644 --- a/tests/import-csv-trimStrings.sh +++ b/tests/import-csv-trimStrings.sh @@ -11,7 +11,7 @@ cat << "DATA" > "${tmpdir}/${t}.csv" a,b,c 1 , 2 , 3 0,0,0 -$,\,' +$,/,' DATA # assertion @@ -19,7 +19,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" a b c 1 2 3 0 0 0 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-json-recordPath.sh b/tests/import-json-recordPath.sh index 1171e7f..1c34556 100644 --- a/tests/import-json-recordPath.sh +++ b/tests/import-json-recordPath.sh @@ -22,7 +22,7 @@ cat << "DATA" > "${tmpdir}/${t}.json" }, { "a":"$", - "b":"\\", + "b":"/", "c":"'" } ] diff --git a/tests/import-json-storeEmptyStrings.sh b/tests/import-json-storeEmptyStrings.sh index 4aacf23..f2c51b7 100644 --- a/tests/import-json-storeEmptyStrings.sh +++ b/tests/import-json-storeEmptyStrings.sh @@ -21,7 +21,7 @@ cat << "DATA" > "${tmpdir}/${t}.json" }, { "a": "$", - "b": "\\", + "b": "/", "c": "'" } ] @@ -32,7 +32,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" _ - a _ - b _ - c 1 2 3 -$ \ ' +$ / ' DATA # action diff --git a/tests/import-json-trimStrings.sh b/tests/import-json-trimStrings.sh index 841ed62..204bead 100644 --- a/tests/import-json-trimStrings.sh +++ b/tests/import-json-trimStrings.sh @@ -21,7 +21,7 @@ cat << "DATA" > "${tmpdir}/${t}.json" }, { "a": "$", - "b": "\\", + "b": "/", "c": "'" } ] @@ -32,7 +32,7 @@ cat << "DATA" > "${tmpdir}/${t}.assert" _ - a _ - b _ - c 1 2 3 0 0 0 -$ \ ' +$ / ' DATA # action