|
|
|
@ -417,6 +417,14 @@ var CORE_PARSER_TESTS = [
@@ -417,6 +417,14 @@ var CORE_PARSER_TESTS = [
|
|
|
|
|
errors: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Pipes with decimal numbers and comma as decimal separator", |
|
|
|
|
input: 'a|3,4|b\r\nc|3,4|d', |
|
|
|
|
expected: { |
|
|
|
|
data: [['a', '3,4', 'b'], ['c', '3,4', 'd']], |
|
|
|
|
errors: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Commented line at end", |
|
|
|
|
input: 'a,true,false\n# Comment', |
|
|
|
@ -1579,14 +1587,6 @@ var UNPARSE_TESTS = [
@@ -1579,14 +1587,6 @@ var UNPARSE_TESTS = [
|
|
|
|
|
config: {newline: '\r'}, |
|
|
|
|
expected: 'a,b,c\rd,e,f' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Pipes with decimal numbers and comma as decimal separator", |
|
|
|
|
input: 'a|3,4|b\r\nc|3,4|d', |
|
|
|
|
expected: { |
|
|
|
|
data: [['a', '3,4', 'b'], ['c', '3,4', 'd']], |
|
|
|
|
errors: [] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
description: "Custom line ending (\\n)", |
|
|
|
|
input: [['a', 'b', 'c'], ['d', 'e', 'f']], |
|
|
|
|