test/tc_interface.rb in fastercsv-0.1.6 vs test/tc_interface.rb in fastercsv-0.1.8
- old
+ new
@@ -135,9 +135,18 @@
FasterCSV.open(@path, "w", :col_sep => "\t", :row_sep => "\r\n") do |csv|
@expected.each { |row| csv << row }
end
test_shift
+
+ # same thing using FasterCSV::Row objects
+ File.unlink(@path)
+
+ FasterCSV.open(@path, "w", :col_sep => "\t", :row_sep => "\r\n") do |csv|
+ @expected.each { |row| csv << FasterCSV::Row.new(Array.new, row) }
+ end
+
+ test_shift
end
### Test Read and Write Interface ###
def test_filter