mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
Separate ? and - into special tokens
This commit is contained in:
@@ -44,9 +44,9 @@ class ParserUnitTest < Minitest::Test
|
||||
end
|
||||
|
||||
def test_expressions
|
||||
p = Parser.new("hi.there hi[5].! hi.there.bob")
|
||||
p = Parser.new("hi.there hi?[5].there? hi.there.bob")
|
||||
assert_equal 'hi.there', p.expression
|
||||
assert_equal 'hi[5].!', p.expression
|
||||
assert_equal 'hi?[5].there?', p.expression
|
||||
assert_equal 'hi.there.bob', p.expression
|
||||
|
||||
p = Parser.new("567 6.0 'lol' \"wut\"")
|
||||
|
||||
Reference in New Issue
Block a user