test/tc_row.rb in fastercsv-0.2.1 vs test/tc_row.rb in fastercsv-1.0.0
- old
+ new
@@ -193,9 +193,12 @@
# by both
assert_equal([2, 3, 4], @row.fields("B", "C", 3))
# with minimum indices
assert_equal([2, 3, 4], @row.fields("B", "C", ["A", 3]))
+
+ # by header range
+ assert_equal([2, 3], @row.values_at("B".."C"))
end
def test_index
# basic usage
assert_equal(0, @row.index("A"))