summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/csv/test_row.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb
index 345b7a2342..3016c5b57c 100755
--- a/test/csv/test_row.rb
+++ b/test/csv/test_row.rb
@@ -256,7 +256,7 @@ class TestCSV::Row < TestCSV
assert_equal( [["A", 1], ["A", 4], ["A", nil]],
@row.select { |pair| pair.first == "A" } )
- assert_equal(10, @row.inject(0) { |sum, (header, n)| sum + (n || 0) })
+ assert_equal(10, @row.inject(0) { |sum, (_, n)| sum + (n || 0) })
end
def test_to_a
@@ -310,4 +310,8 @@ class TestCSV::Row < TestCSV
"Header field pair not found." )
end
end
+
+ def test_can_be_compared_with_other_classes
+ assert(CSV::Row.new([ ], [ ]) != nil, "The row was nil")
+ end
end