summaryrefslogtreecommitdiff
path: root/test/csv
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-11-23 05:54:04 +0900
committerSutou Kouhei <kou@cozmixng.org>2020-11-24 09:33:55 +0900
commit832b7f3c547377621e920704c3e4dd839d21f0af (patch)
tree64021c3e574e08ccfa6de91b867655dbb8541a33 /test/csv
parentf9935205acc6ee1c737c2c132e547747c21d3ead (diff)
[ruby/csv] Add support for \r\n with skip_lines: /...$/ again
GitHub: fix GH-194 Reported by Josef Šimánek. Thanks!!! https://github.com/ruby/csv/commit/fd86afe081
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3804
Diffstat (limited to 'test/csv')
-rw-r--r--test/csv/parse/test_skip_lines.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/csv/parse/test_skip_lines.rb b/test/csv/parse/test_skip_lines.rb
index 2f7e6c8..98d67ae 100644
--- a/test/csv/parse/test_skip_lines.rb
+++ b/test/csv/parse/test_skip_lines.rb
@@ -109,4 +109,10 @@ class TestCSVParseSkipLines < Test::Unit::TestCase
:liberal_parsing => true,
:skip_lines => /^$/))
end
+
+ def test_crlf
+ assert_equal([["a", "b"]],
+ CSV.parse("a,b\r\n,\r\n",
+ :skip_lines => /^,+$/))
+ end
end