test/tc_csv_parsing.rb in fastercsv-1.5.1 vs test/tc_csv_parsing.rb in fastercsv-1.5.3
- old
+ new
@@ -112,9 +112,13 @@
def test_non_regex_edge_cases
# An early version of the non-regex parser fails this test
[["foo,\"foo,bar,baz,foo\",\"foo\"", ["foo", "foo,bar,baz,foo", "foo"]]].each do |edge_case|
assert_equal(edge_case.last, FasterCSV.parse_line(edge_case.first))
end
+
+ assert_raise(FasterCSV::MalformedCSVError) do
+ FasterCSV.parse_line("1,\"23\"4\"5\", 6")
+ end
end
def test_malformed_csv
assert_raise(FasterCSV::MalformedCSVError) do
FasterCSV.parse_line("1,2\r,3", :row_sep => "\n")