@@ -156,29 +156,13 @@ def test_unquoted_cr_with_custom_row_separator
156156 assert_equal ( expected , CSV . parse ( data , row_sep : "|" ) )
157157 end
158158
159- def test_unquoted_cr_with_crlf_row_separator
160- data = "field1\r ,field2,field3\r \n row2,data,here\r \n "
161- assert_raise ( CSV ::MalformedCSVError ) do
162- CSV . parse ( data , row_sep : "\r \n " )
163- end
164- end
165-
166159 def test_unquoted_cr_rejected_when_included_in_row_separator
167160 data = "field1,field\r 2,field3\r \n row2,data,here\r \n "
168161 assert_raise ( CSV ::MalformedCSVError ) do
169162 CSV . parse ( data , row_sep : "\r \n " )
170163 end
171164 end
172165
173- def test_liberal_parsing_with_unquoted_cr_and_custom_row_separator
174- data = "field1,field\r with\r cr,field3|row2,data,here|"
175- expected = [
176- [ "field1" , "field\r with\r cr" , "field3" ] ,
177- [ "row2" , "data" , "here" ]
178- ]
179- assert_equal ( expected , CSV . parse ( data , row_sep : "|" , liberal_parsing : true ) )
180- end
181-
182166 def test_quoted_cr_with_custom_row_separator
183167 data = "field1,\" field\r with\r cr\" ,field3|row2,data,here|"
184168 expected = [
0 commit comments