Permalink
Browse files

Adding some clarification tests.

  • Loading branch information...
1 parent 6e7816a commit 4f854075527df6402401c429b2682abbb198eb01 @JEG2 committed Jan 30, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/tc_interface.rb
View
5 test/tc_interface.rb
@@ -72,6 +72,11 @@ def test_parse_line
assert_equal(%w{1 2 3}, row)
end
+ def test_parse_line_with_empty_lines
+ assert_equal(nil, FasterCSV.parse_line("")) # to signal eof
+ assert_equal(Array.new, FasterCSV.parse_line("\n1,2,3"))
+ end
+
def test_read_and_readlines
assert_equal( @expected,
FasterCSV.read(@path, :col_sep => "\t", :row_sep => "\r\n") )

0 comments on commit 4f85407

Please sign in to comment.