Skip to content

Commit 5965ae9

Browse files
mkaputmhanberg
authored andcommitted
test: add absinthe comma-assignment regression case
Add a focused parser parity regression for the snippet that triggered the CI crash: comma = ascii_char([?,]) This comes from absinthe-graphql/absinthe lexer code and protects against regressions where an identifier named `comma` can produce malformed intermediate lhs state during infix parsing.
1 parent 57b4c3b commit 5965ae9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/spitfire_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,8 @@ defmodule SpitfireTest do
23562356
assert Spitfire.parse("x...<-y") == s2q("x...<-y")
23572357
assert Spitfire.parse("x...::y") == s2q("x...::y")
23582358
assert Spitfire.parse("x... when y") == s2q("x... when y")
2359+
# Regression from absinthe-graphql/absinthe lexer
2360+
assert Spitfire.parse("comma = ascii_char([?,])") == s2q("comma = ascii_char([?,])")
23592361
end
23602362
end
23612363

0 commit comments

Comments
 (0)