Browse Source

Test case for issue 738: Skip lines future.

https://github.com/mholt/PapaParse/issues/738
pull/746/head
Damir Khakimov 5 years ago
parent
commit
a922415819
  1. 21
      tests/test-cases.js

21
tests/test-cases.js

@ -534,6 +534,27 @@ var CORE_PARSER_TESTS = [ @@ -534,6 +534,27 @@ var CORE_PARSER_TESTS = [
errors: []
}
},
{
description: "Skipped line at beginning",
input: 'Skipped_line\na,b,c',
config: { skipLines: 1 },
expected: {
data: [['a', 'b', 'c']],
errors: []
}
},
{
description: "Skipped line at beginning followed by comment line",
input: 'Skipped_line\n# Comment\na,b,c',
config: {
skipLines: 1,
comments: true
},
expected: {
data: [['a', 'b', 'c']],
errors: []
}
},
{
description: "Multiple rows, one column (no delimiter found)",
input: 'a\nb\nc\nd\ne',

Loading…
Cancel
Save