Browse Source

add the test suit

pull/687/head
morance 6 years ago
parent
commit
bf3553d569
  1. 10
      tests/test-cases.js

10
tests/test-cases.js

@ -1203,6 +1203,16 @@ var PARSE_TESTS = [ @@ -1203,6 +1203,16 @@ var PARSE_TESTS = [
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",
notes: "Guessing the delimiter should work if the first field is enclosed in quotes, but others are not",

Loading…
Cancel
Save