adding and fixing test for empty strings

This commit is contained in:
Jeremy Ashkenas
2010-01-12 08:52:44 -05:00
parent 27f7ef09af
commit c19647ad33
2 changed files with 7 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
array[5..10]: [0, 0, 0] array[5..10]: [0, 0, 0]

View File

@@ -7,7 +7,7 @@ class LexerTest < Test::Unit::TestCase
end end
def test_lexing_an_empty_string def test_lexing_an_empty_string
assert @lex.tokenize("") == [["\n", "\n"]] assert @lex.tokenize("") == []
end end
def test_lexing_basic_assignment def test_lexing_basic_assignment