Allow :id to start with the word contains

This commit is contained in:
Michael Angell
2016-08-20 20:32:46 +10:00
parent f41ed78378
commit 6ed6e7e12f
3 changed files with 8 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ class LexerUnitTest < Minitest::Test
end
def test_comparison
tokens = Lexer.new('== <> contains').tokenize
tokens = Lexer.new('== <> contains ').tokenize
assert_equal [[:comparison, '=='], [:comparison, '<>'], [:comparison, 'contains'], [:end_of_string]], tokens
end