|
|
@ -1203,6 +1203,16 @@ var PARSE_TESTS = [ |
|
|
|
errors: [] |
|
|
|
errors: [] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
description: "Pipe delimiter is guessed correctly choose avgFildCount max one", |
|
|
|
|
|
|
|
notes: "Guessing the delimiter should work choose the min delta one and the max one", |
|
|
|
|
|
|
|
config: {}, |
|
|
|
|
|
|
|
input: 'a,b,c\na,b,c|d|e|f', |
|
|
|
|
|
|
|
expected: { |
|
|
|
|
|
|
|
data: [['a', 'b', 'c'], ['a','b','c|d|e|f']], |
|
|
|
|
|
|
|
errors: [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
description: "Pipe delimiter is guessed correctly when first field are enclosed in quotes and contain delimiter characters", |
|
|
|
description: "Pipe delimiter is guessed correctly when first field are enclosed in quotes and contain delimiter characters", |
|
|
|
notes: "Guessing the delimiter should work if the first field is enclosed in quotes, but others are not", |
|
|
|
notes: "Guessing the delimiter should work if the first field is enclosed in quotes, but others are not", |
|
|
|