test/tc/csv2.rb in rio-0.3.4 vs test/tc/csv2.rb in rio-0.3.6

- old
+ new

@@ -103,11 +103,11 @@ assert_equal(@lines[1],rio('src1.csv').lines(1).getrec) assert_equal(@lines[1],rio('src1.csv').records(1).getrec) assert_equal(@lines[1],rio('src1.csv').rows(1).getrec) - assert_equal(@lines[1],rio('src1.csv').csv.lines(1).getrec) + assert_equal(@records[1],rio('src1.csv').csv.lines(1).getrec) assert_equal(@records[1],rio('src1.csv').csv.records(1).getrec) assert_equal(@records[8000],rio('src1.csv').csv.records(8000).getrec) assert_equal(@string[0,23],rio('src1.csv').bytes(23).getrec) @@ -116,10 +116,10 @@ rec_rio = rio('src1.csv').csv.getrec assert_kind_of(::Array,rec_rio) assert_equal(@strings[0],rec_rio.to_s) rec_rio = rio('src1.csv').csv.lines.getrec - assert_kind_of(::String,rec_rio) + assert_kind_of(::Array,rec_rio) assert_equal(@records[0],rec_rio.to_a) ary = rio('src1.csv').csv[] assert_kind_of(::Array,ary[0]) assert_equal(@strings[0],ary[0].to_s)