smarter_csv
smarter_csv copied to clipboard
Unbalanced quote_char does not raise an error
Actual output:
$ cat cats.csv
first name,last name,dogs,cats,birds,fish
Dan,McAllister,2,1,"2,4
Lucy,Laweless,,5,,
Miles,O'Brian,,,,21
Nancy,Homes,2,,1,
x = SmarterCSV.process('/Users/Me/Documents/parentsquare/parent_square/cats.csv', options: {verbose: true})
EOFError: end of file reached
from /Users/Me/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/smarter_csv-1.2.8/lib/smarter_csv/smarter_csv.rb:141:in `readline'
Expected output:
EOFError: end of file reached on line 1
(assumes 0 counting)