Skip to content

Commit

Permalink
relax_column_count: default to false (strict)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Apr 26, 2016
1 parent 434c351 commit f062963
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.coffee.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Options are documented [here](http://csv.adaltas.com/parse/).
@options.auto_parse ?= false
@options.auto_parse_date ?= false
@options.relax ?= false
@options.relax_column_count ?= true
@options.relax_column_count ?= false
@options.skip_empty_lines ?= false
@options.max_limit_on_data_read ?= 128000
# Counters
Expand Down
6 changes: 3 additions & 3 deletions test/columns.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe 'columns', ->
]
next()

it.skip 'validate options column length on first line', (next) ->
it 'validate options column length on first line', (next) ->
parse """
1,2,3
4,5,6,x
Expand All @@ -60,7 +60,7 @@ describe 'columns', ->
err.message.should.eql 'Number of columns on line 1 does not match header'
next()

it.skip 'validate options column length on last line', (next) ->
it 'validate options column length on last line', (next) ->
parse """
1,2,3,x
4,5,6,x
Expand All @@ -69,7 +69,7 @@ describe 'columns', ->
err.message.should.eql 'Number of columns on line 3 does not match header'
next()

it.skip 'handles missing column if number of columns is inconsistent', (next) ->
it 'handles missing column if number of columns is inconsistent', (next) ->
parse """
20322051544,1979,8.8017226E7,ABC,45,2000-01-01
28392898392,1974,8.8392926E7,23,2050-11-27
Expand Down

0 comments on commit f062963

Please sign in to comment.