|
|
|
@ -563,15 +563,24 @@ var PARSE_TESTS = [
@@ -563,15 +563,24 @@ var PARSE_TESTS = [
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Bad delimiter", |
|
|
|
|
description: "Bad delimiter (\\n)", |
|
|
|
|
input: 'a,b,c', |
|
|
|
|
config: { delimiter: "DELIM" }, |
|
|
|
|
config: { delimiter: "\n" }, |
|
|
|
|
notes: "Should silently default to comma", |
|
|
|
|
expected: { |
|
|
|
|
data: [['a', 'b', 'c']], |
|
|
|
|
errors: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Multi-character delimiter", |
|
|
|
|
input: 'a, b, c', |
|
|
|
|
config: { delimiter: ", " }, |
|
|
|
|
expected: { |
|
|
|
|
data: [['a', 'b', 'c']], |
|
|
|
|
errors: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Dynamic typing converts numeric literals", |
|
|
|
|
input: '1,2.2,1e3\r\n-4,-4.5,-4e-5\r\n-,5a,5-2', |
|
|
|
|