Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case for issue 738: Skip lines future. #746

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions tests/test-cases.js
Expand Up @@ -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',
Expand Down