mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Add quirks test for variables with number prefixes
This commit is contained in:
@@ -103,4 +103,11 @@ class ParsingQuirksTest < Minitest::Test
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_invalid_variables_work
|
||||||
|
with_error_mode(:lax) do
|
||||||
|
assert_template_result('bar', "{% assign 123foo = 'bar' %}{{ 123foo }}")
|
||||||
|
assert_template_result('123', "{% assign 123 = 'bar' %}{{ 123 }}")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end # ParsingQuirksTest
|
end # ParsingQuirksTest
|
||||||
|
|||||||
Reference in New Issue
Block a user