Trying to get CSV tests to pass

db4
Slava Pestov 2008-04-29 23:15:50 -05:00
parent 4d03cb8c75
commit 634754d0b0
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
USING: io.streams.string csv tools.test shuffle ;
IN: csv.tests
! I like to name my unit tests
: named-unit-test ( name output input -- )
@ -32,7 +33,7 @@ USING: io.streams.string csv tools.test shuffle ;
"Fields with leading or trailing spaces must be delimited by double-quote characters. (See comment about leading and trailing spaces above)"
[ { { "1997" "Ford" "E350" " Super luxurious truck " } } ]
[ "1997,Ford,E350,\" Super luxurious truck \""
<string-reader> csv ] unit-test
<string-reader> csv ] named-unit-test
"Fields may always be delimited by double-quote characters, whether necessary or not."
[ { { "1997" "Ford" "E350" } } ]