test/test-csv-loader.rb in red-arrow-16.0.0 vs test/test-csv-loader.rb in red-arrow-17.0.0

- old
+ new

@@ -25,83 +25,91 @@ sub_test_case(".load") do test("String: data: with header") do data = fixture_path("with-header-float.csv").read assert_equal(<<-TABLE, load_csv(data).to_s) - name score -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + name score + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("String: data: without header") do data = fixture_path("without-header-float.csv").read assert_equal(<<-TABLE, load_csv(data).to_s) - 0 1 -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + 0 1 + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("String: path: with header") do path = fixture_path("with-header-float.csv").to_s assert_equal(<<-TABLE, load_csv(path).to_s) - name score -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + name score + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("String: path: without header") do path = fixture_path("without-header-float.csv").to_s assert_equal(<<-TABLE, load_csv(path).to_s) - 0 1 -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + 0 1 + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("Pathname: with header") do path = fixture_path("with-header-float.csv") assert_equal(<<-TABLE, load_csv(path).to_s) - name score -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + name score + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("Pathname: without header") do path = fixture_path("without-header-float.csv") assert_equal(<<-TABLE, load_csv(path).to_s) - 0 1 -0 alice 10.100000 -1 bob 29.200000 -2 chris -1.300000 + 0 1 + (utf8) (double) +0 alice 10.100000 +1 bob 29.200000 +2 chris -1.300000 TABLE end test("null: with double quote") do path = fixture_path("null-with-double-quote.csv").to_s assert_equal(<<-TABLE, load_csv(path).to_s) - name score -0 alice 10 -1 bob (null) -2 chris -1 + name score + (utf8) (int8) +0 alice 10 +1 bob (null) +2 chris -1 TABLE end test("null: without double quote") do path = fixture_path("null-without-double-quote.csv").to_s assert_equal(<<-TABLE, load_csv(path).to_s) - name score -0 alice 10 -1 bob (null) -2 chris -1 + name score + (utf8) (int8) +0 alice 10 +1 bob (null) +2 chris -1 TABLE end test("number: float, integer") do path = fixture_path("float-integer.csv").to_s