-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additionally, a bug with the delimiter sniffer that prevented dialects from being properly determined has been fixed.
- Loading branch information
Showing
12 changed files
with
420 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
testing/tests/results/CSV delimiter guessing test - 18-ene-2024 23-28-31.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
=== Delimiters guessing test === | ||
+ Mixed comma and semicolon | ||
+ File with multi-line field | ||
+ Optional quoted fields | ||
+ Mixed comma and semicolon - file B | ||
+ Geometric CSV | ||
+ Table embedded in the last record | ||
+ Table embedded in the second record | ||
+ Multiple commas in fields | ||
+ Uncommon char as field delimiter | ||
+ Wrong delimiters have been added to guessing operation | ||
+ FEC data - [clevercsv issue #15] | ||
+ Mixed comma and colon - [clevercsv issue #35] | ||
+ Json data type - [clevercsv issue #37] | ||
+ Undefined field delimiter | ||
X Rainbow CSV [issue #92] | ||
Expected: ([,] & [2])Actual: ([|] & [2]) | ||
+ Pipe character is more frequent than the comma | ||
+ Pipe character is more frequent than the semicolon | ||
+ Short pipe separated table embedded | ||
= FAIL (1 of 18 failed) = 18/1/2024 11:28:32 p.�m. = | ||
|
163 changes: 163 additions & 0 deletions
163
testing/tests/results/CSV import test - 18-ene-2024 20-39-49.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
=== StreamCSVimport === | ||
+ Bad comments value specified | ||
+ Comment with non-default character | ||
+ Commented line at beginning | ||
+ Commented line at end | ||
+ Commented line in middle | ||
+ Entire file is comment lines | ||
+ Input is just a string (a single field) | ||
+ Input is just empty fields | ||
+ Input is just the delimiter (2 empty fields) | ||
+ Input with only a commented line and blank line after | ||
+ Input with only a commented line, without comments enabled | ||
+ Input without comments with line starting with whitespace | ||
+ Line ends with quoted field | ||
+ Line starts with quoted field | ||
+ Misplaced quotes in data, not as opening quotes | ||
+ Multiple consecutive empty fields | ||
+ Multiple rows, one column (no delimiter found) | ||
+ One column input with empty fields | ||
+ One Row | ||
+ Pipe delimiter | ||
+ Quoted field at end of row (but not at EOF) has quotes | ||
+ Quoted field has no closing quote | ||
+ Quoted field with 5 quotes in a row and a delimiter | ||
+ Quoted field with delimiter | ||
+ Quoted field with escaped quotes at boundaries | ||
+ Quoted field with escaped quotes | ||
+ Quoted field with extra whitespace on edges | ||
+ Quoted field with line break | ||
+ Quoted field with quotes around delimiter | ||
+ Quoted field with quotes on left side of delimiter | ||
+ Quoted field with quotes on right side of delimiter | ||
+ Quoted field with Unix escaped quotes at boundaries | ||
+ Quoted field with whitespace around quotes | ||
+ Quoted field | ||
+ Quoted fields at end of row with delimiter and line break | ||
X Quoted fields with line breaks | ||
Expected 3 fields and 1 record | ||
+ Row with enough fields but blank field at end | ||
+ Row with too few fields | ||
+ Row with too many fields | ||
+ Skip empty lines, with empty input | ||
+ Skip empty lines, with first line only whitespace | ||
+ Skip empty lines, with newline at end of input | ||
+ Tab delimiter | ||
+ Three comment lines consecutively at beginning of file | ||
+ Two comment lines consecutively at end of file | ||
+ Two comment lines consecutively | ||
+ Two rows | ||
+ Unquoted field with quotes at end of field | ||
+ Whitespace at edges of unquoted field | ||
+ Complex CSV syntax | ||
= FAIL (1 of 50 failed) = 18/1/2024 8:40:43 p.�m. = | ||
|
||
=== StringCSVimport === | ||
+ Bad comments value specified | ||
+ Comment with non-default character | ||
+ Commented line at beginning | ||
+ Commented line at end | ||
+ Commented line in middle | ||
+ Entire file is comment lines | ||
+ Input is just a string (a single field) | ||
+ Input is just empty fields | ||
+ Input is just the delimiter (2 empty fields) | ||
+ Input with only a commented line and blank line after | ||
+ Input with only a commented line, without comments enabled | ||
+ Input without comments with line starting with whitespace | ||
+ Line ends with quoted field | ||
+ Line starts with quoted field | ||
+ Misplaced quotes in data, not as opening quotes | ||
+ Multiple consecutive empty fields | ||
+ Multiple rows, one column (no delimiter found) | ||
+ One column input with empty fields | ||
+ One Row | ||
+ Pipe delimiter | ||
+ Quoted field at end of row (but not at EOF) has quotes | ||
+ Quoted field has no closing quote | ||
+ Quoted field with 5 quotes in a row and a delimiter | ||
+ Quoted field with delimiter | ||
+ Quoted field with escaped quotes at boundaries | ||
+ Quoted field with escaped quotes | ||
+ Quoted field with extra whitespace on edges | ||
+ Quoted field with line break | ||
+ Quoted field with quotes around delimiter | ||
+ Quoted field with quotes on left side of delimiter | ||
+ Quoted field with quotes on right side of delimiter | ||
+ Quoted field with Unix escaped quotes at boundaries | ||
+ Quoted field with whitespace around quotes | ||
+ Quoted field | ||
+ Quoted fields at end of row with delimiter and line break | ||
X Quoted fields with line breaks | ||
Expected 3 fields and 1 record | ||
+ Row with enough fields but blank field at end | ||
+ Row with too few fields | ||
+ Row with too many fields | ||
+ Skip empty lines, with empty input | ||
+ Skip empty lines, with first line only whitespace | ||
+ Skip empty lines, with newline at end of input | ||
+ Tab delimiter | ||
+ Three comment lines consecutively at beginning of file | ||
+ Two comment lines consecutively at end of file | ||
+ Two comment lines consecutively | ||
+ Two rows | ||
+ Unquoted field with quotes at end of field | ||
+ Whitespace at edges of unquoted field | ||
+ Complex CSV syntax | ||
= FAIL (1 of 50 failed) = 18/1/2024 8:40:47 p.�m. = | ||
|
||
=== SequentialCSVimport === | ||
+ Bad comments value specified | ||
+ Comment with non-default character | ||
+ Commented line at beginning | ||
+ Commented line at end | ||
+ Commented line in middle | ||
+ Entire file is comment lines | ||
+ Input is just a string (a single field) | ||
+ Input is just empty fields | ||
+ Input is just the delimiter (2 empty fields) | ||
+ Input with only a commented line and blank line after | ||
X Input with only a commented line, without comments enabled | ||
Expected 1 records with 1 fields | ||
+ Input without comments with line starting with whitespace | ||
+ Line ends with quoted field | ||
+ Line starts with quoted field | ||
+ Misplaced quotes in data, not as opening quotes | ||
+ Multiple consecutive empty fields | ||
+ Multiple rows, one column (no delimiter found) | ||
+ One column input with empty fields | ||
+ One Row | ||
+ Pipe delimiter | ||
+ Quoted field at end of row (but not at EOF) has quotes | ||
+ Quoted field has no closing quote | ||
+ Quoted field with 5 quotes in a row and a delimiter | ||
+ Quoted field with delimiter | ||
+ Quoted field with escaped quotes at boundaries | ||
+ Quoted field with escaped quotes | ||
+ Quoted field with extra whitespace on edges | ||
+ Quoted field with line break | ||
+ Quoted field with quotes around delimiter | ||
+ Quoted field with quotes on left side of delimiter | ||
+ Quoted field with quotes on right side of delimiter | ||
+ Quoted field with Unix escaped quotes at boundaries | ||
+ Quoted field with whitespace around quotes | ||
+ Quoted field | ||
+ Quoted fields at end of row with delimiter and line break | ||
X Quoted fields with line breaks | ||
Expected 3 fields and 1 record | ||
+ Row with enough fields but blank field at end | ||
+ Row with too few fields | ||
+ Row with too many fields | ||
+ Skip empty lines, with empty input | ||
+ Skip empty lines, with first line only whitespace | ||
+ Skip empty lines, with newline at end of input | ||
+ Tab delimiter | ||
+ Three comment lines consecutively at beginning of file | ||
+ Two comment lines consecutively at end of file | ||
+ Two comment lines consecutively | ||
+ Two rows | ||
+ Unquoted field with quotes at end of field | ||
+ Whitespace at edges of unquoted field | ||
+ Complex CSV syntax | ||
= FAIL (2 of 50 failed) = 18/1/2024 8:40:50 p.�m. = | ||
|
36 changes: 36 additions & 0 deletions
36
testing/tests/results/CSV import test - 18-ene-2024 20-45-54.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
=== StreamCSVimport === | ||
+ Bad comments value specified | ||
+ Comment with non-default character | ||
+ Commented line at beginning | ||
+ Commented line at end | ||
+ Commented line in middle | ||
+ Entire file is comment lines | ||
+ Input is just a string (a single field) | ||
+ Input is just empty fields | ||
+ Input is just the delimiter (2 empty fields) | ||
+ Input with only a commented line and blank line after | ||
+ Input with only a commented line, without comments enabled | ||
+ Input without comments with line starting with whitespace | ||
+ Line ends with quoted field | ||
+ Line starts with quoted field | ||
+ Misplaced quotes in data, not as opening quotes | ||
+ Multiple consecutive empty fields | ||
+ Multiple rows, one column (no delimiter found) | ||
+ One column input with empty fields | ||
+ One Row | ||
+ Pipe delimiter | ||
+ Quoted field at end of row (but not at EOF) has quotes | ||
+ Quoted field has no closing quote | ||
+ Quoted field with 5 quotes in a row and a delimiter | ||
+ Quoted field with delimiter | ||
+ Quoted field with escaped quotes at boundaries | ||
+ Quoted field with escaped quotes | ||
+ Quoted field with extra whitespace on edges | ||
+ Quoted field with line break | ||
+ Quoted field with quotes around delimiter | ||
+ Quoted field with quotes on left side of delimiter | ||
+ Quoted field with quotes on right side of delimiter | ||
+ Quoted field with Unix escaped quotes at boundaries | ||
+ Quoted field with whitespace around quotes | ||
+ Quoted field | ||
+ Quoted fields at end of row with delimiter and line break |
Oops, something went wrong.