C2FO/fast-csv — pull request #58 by derjust (2014-08-20 01:25:24+00:00)
Title: Fix test cases on windows

As preparation for PR #53 I fixed the test cases on Windows.
Beforehand, there were failing due to newline issues [1].
Please pay special attention to the skiped test case "handle CSVs with comments".
I have no idea what's going on wrong there on Windows but I'm happy to test bugfixes...

[1]:
>$ npm test
> fast-csv@0.4.4 test c:\Users\Sebastian.Just\Source\Repos\fast-csv
> grunt jshint it
Running "jshint:file" (jshint) task
>> 5 files lint free.
Running "it:all" (it) task
fast-csv
√ should parse a csv without quotes or escapes (6ms)
√ should emit data as a buffer if objectMode is false (2ms)
√ should emit data as an object if objectMode is true (2ms)
√ should emit data as an object if objectMode is not specified (1ms)
√ should allow piping from a stream (1ms)
√ should accept a csv string (1ms)
√ should parse a csv with " escapes (1ms)
√ should parse a csv with without headers (1ms)
√ should parse a csv with ' escapes (1ms)
√ should allow specifying of columns (1ms)
√ should allow validation of rows (1ms)
√ should allow transforming of data (1ms)
√ should accept a stream (2ms)
√ should emit an error for invalid rows (1ms)
√ should handle a trailing comma (0ms)
√ should skip valid, but empty rows with ignoreEmpty option (1ms)
√ should handle single quotes inside of double quotes (1ms)
√ should handle double quotes inside of single quotes (2ms)
√ should handle escaped double quotes inside of double quotes (1ms)
√ should handle escaped single quotes inside of single quotes (2ms)
√ should discard extra columns that do not map to a header with discardUnmappedColumns option (0ms)
alternate delimiters
√ should support tab delimiters (2ms)
√ should support pipe delimiters (1ms)
√ should support semicolon delimiters (1ms)
√ should ignore leading white space in front of a quoted value (1ms)
√ should accept a ltrim parameter (1ms)
√ should accept a rtrim parameter (1ms)
√ should accept a trim parameter (2ms)
Fatal error: [{"first_name":"First\r\n1","last_name":"Last\r\n1","email_address":"email1@email.com","address":"1 Street
St,\r\nState ST, 8888 deepEqual [{"first_name":"First\n1","last_name":"Last\n1","email_address":"email1@email.com","addr
ess":"1 Street St,\nState ST, 88888"},{"
npm ERR! Test failed. See above for more details.```