diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 13:33:21 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 13:33:21 +0000 |
commit | 60ebd4e26a1b6ed3ad11bade520db0a19e9be190 (patch) | |
tree | 7fd02799a27da1ab9c7f57ab5705100c4dab1d3b /test/csv/test_row.rb | |
parent | 21ce539f20b1376ab4644f9620b0cd1487ae99d6 (diff) | |
download | ruby-60ebd4e26a1b6ed3ad11bade520db0a19e9be190.tar.gz |
Merge csv-3.0.0 from ruby/csv repository.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/csv/test_row.rb')
-rwxr-xr-x | test/csv/test_row.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb index 23df4d4fe6..67ed65c0db 100755 --- a/test/csv/test_row.rb +++ b/test/csv/test_row.rb @@ -419,4 +419,12 @@ class TestCSV::Row < TestCSV row.dig("A", 0) end end + + def test_dup + row = CSV::Row.new(["A"], ["foo"]) + dupped_row = row.dup + dupped_row.delete("A") + assert_equal(["foo", nil], + [row["A"], dupped_row["A"]]) + end end |