Skip to content

Commit

Permalink
add more quirky lexer parsing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmichaelgo committed Oct 30, 2024
1 parent 15d1179 commit 2a829b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/parsing_quirks_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ def test_contains_in_id

def test_incomplete_expression
with_error_mode(:lax) do
assert_template_result("false", "{{ false - }}")
assert_template_result("false", "{{ false > }}")
assert_template_result("false", "{{ false < }}")
assert_template_result("false", "{{ false = }}")
assert_template_result("false", "{{ false ! }}")
assert_template_result("false", "{{ false 1 }}")
assert_template_result("false", "{{ false a }}")

assert_template_result("false", "{% liquid assign foo = false -\n%}{{ foo }}")
assert_template_result("false", "{% liquid assign foo = false >\n%}{{ foo }}")
assert_template_result("false", "{% liquid assign foo = false <\n%}{{ foo }}")
Expand Down

0 comments on commit 2a829b8

Please sign in to comment.