test/unit/lexer_unit_test.rb in liquid-4.0.0 vs test/unit/lexer_unit_test.rb in liquid-4.0.1
- old
+ new
@@ -17,10 +17,10 @@
tokens = Lexer.new('hi 5.0').tokenize
assert_equal [[:id, 'hi'], [:number, '5.0'], [:end_of_string]], tokens
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
def test_specials
tokens = Lexer.new('| .:').tokenize