From 634754d0b0865e59040bf50fa1e323c163b354d7 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 29 Apr 2008 23:15:50 -0500 Subject: [PATCH] Trying to get CSV tests to pass --- extra/csv/csv-tests.factor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/csv/csv-tests.factor b/extra/csv/csv-tests.factor index bf70ed3009..edd22751b5 100644 --- a/extra/csv/csv-tests.factor +++ b/extra/csv/csv-tests.factor @@ -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 \"" - csv ] unit-test + csv ] named-unit-test "Fields may always be delimited by double-quote characters, whether necessary or not." [ { { "1997" "Ford" "E350" } } ]