test/test-csv-loader.rb in red-arrow-0.8.1 vs test/test-csv-loader.rb in red-arrow-0.8.2
- old
+ new
@@ -73,7 +73,27 @@
0 alice 10
1 bob 29
2 chris -1
TABLE
end
+
+ test("null: with double quote") do
+ path = fixture_path("null-with-double-quote.csv").to_s
+ assert_equal(<<-TABLE, Arrow::CSVLoader.load(path).to_s)
+ name score
+0 alice 10
+1 bob
+2 chris -1
+ TABLE
+ end
+
+ test("null: without double quote") do
+ path = fixture_path("null-without-double-quote.csv").to_s
+ assert_equal(<<-TABLE, Arrow::CSVLoader.load(path).to_s)
+ name score
+0 alice 10
+1 bob
+2 chris -1
+ TABLE
+ end
end
end