Add quirks test for variables with number prefixes

This commit is contained in:
Justin Li
2014-11-05 10:56:58 -05:00
parent aa182f64b4
commit 4d97a714a9

View File

@@ -103,4 +103,11 @@ class ParsingQuirksTest < Minitest::Test
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