Update test to cover multiple consecutive dashes in identifiers.

This commit is contained in:
Dylan Thacker-Smith
2015-07-31 00:27:57 -04:00
parent b140e91d8e
commit 25deb9e529

View File

@@ -37,8 +37,8 @@ class LexerUnitTest < Minitest::Test
tokens = Lexer.new('2foo').tokenize
assert_equal [[:number, '2'], [:id, 'foo'], [:end_of_string]], tokens
tokens = Lexer.new('foo-bar-baz-').tokenize
assert_equal [[:id, 'foo-bar-baz'], [:dash, "-"], [:end_of_string]], tokens
tokens = Lexer.new('foo-bar--baz-').tokenize
assert_equal [[:id, 'foo-bar--baz'], [:dash, "-"], [:end_of_string]], tokens
end
def test_whitespace