mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Inline Parser#next_token to avoid method dispatch
This commit is contained in:
@@ -45,11 +45,4 @@ class LexerTest < Test::Unit::TestCase
|
||||
Lexer.new("%").tokenize
|
||||
end
|
||||
end
|
||||
|
||||
def test_next_token
|
||||
l = Lexer.new('hi 5.0')
|
||||
assert_equal [:id, 'hi'], l.next_token
|
||||
assert_equal [:float, '5.0'], l.next_token
|
||||
assert_nil l.next_token
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user