mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
* lib/csv.rb: Fixed test failures caused by changes to Ruby.
* test/csv/tc_serialization, test/csv/tc_csv_parsing, test/csv/tc_features: Fixed test failures caused by changes to Ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33a071016b
commit
a2443bdcf9
5 changed files with 21 additions and 10 deletions
|
@ -123,7 +123,7 @@ class TestCSVParsing < Test::Unit::TestCase
|
|||
line,4,some\rjunk
|
||||
line,5,jkl
|
||||
END_DATA
|
||||
lines = bad_data.to_a
|
||||
lines = bad_data.lines.to_a
|
||||
assert_equal(6, lines.size)
|
||||
assert_match(/\Aline,4/, lines.find { |l| l =~ /some\rjunk/ })
|
||||
|
||||
|
@ -147,7 +147,7 @@ class TestCSVParsing < Test::Unit::TestCase
|
|||
line,4,8'10"
|
||||
line,5,jkl
|
||||
END_DATA
|
||||
lines = bad_data.to_a
|
||||
lines = bad_data.lines.to_a
|
||||
assert_equal(6, lines.size)
|
||||
assert_match(/\Aline,4/, lines.find { |l| l =~ /8'10"/ })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue