mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Update test to cover multiple consecutive dashes in identifiers.
This commit is contained in:
@@ -37,8 +37,8 @@ class LexerUnitTest < Minitest::Test
|
|||||||
tokens = Lexer.new('2foo').tokenize
|
tokens = Lexer.new('2foo').tokenize
|
||||||
assert_equal [[:number, '2'], [:id, 'foo'], [:end_of_string]], tokens
|
assert_equal [[:number, '2'], [:id, 'foo'], [:end_of_string]], tokens
|
||||||
|
|
||||||
tokens = Lexer.new('foo-bar-baz-').tokenize
|
tokens = Lexer.new('foo-bar--baz-').tokenize
|
||||||
assert_equal [[:id, 'foo-bar-baz'], [:dash, "-"], [:end_of_string]], tokens
|
assert_equal [[:id, 'foo-bar--baz'], [:dash, "-"], [:end_of_string]], tokens
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_whitespace
|
def test_whitespace
|
||||||
|
|||||||
Reference in New Issue
Block a user