mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
refactor lexer unit test
This commit is contained in:
@@ -136,11 +136,4 @@ class LexerUnitTest < Minitest::Test
|
||||
def tokenize(input)
|
||||
Lexer.new(input).tokenize
|
||||
end
|
||||
|
||||
def test_tokenize_incomplete_expression
|
||||
assert_equal([[:id, "false"], [:dash, "-"], [:end_of_string]], Lexer.new("false -").tokenize)
|
||||
assert_equal([[:id, "false"], [:comparison, "<"], [:end_of_string]], Lexer.new("false <").tokenize)
|
||||
assert_equal([[:id, "false"], [:comparison, ">"], [:end_of_string]], Lexer.new("false >").tokenize)
|
||||
assert_equal([[:id, "false"], [:number, "1"], [:end_of_string]], Lexer.new("false 1").tokenize)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user