Skip to content

Commit

Permalink
Add missing test for @ character in unquoted strings
Browse files Browse the repository at this point in the history
It was already allowed (see `UNQUOTED_CHAR` in the lexer grammar) but
the test was missing.
  • Loading branch information
odelalleau committed Dec 7, 2020
1 parent 1aaf32c commit af3870d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def _maybe_create(definition: str) -> Any:
("str_quoted_too_many_2", "${test:'a''}", GrammarParseError),
("str_quoted_too_many_3", "${test:''a''}", GrammarParseError),
# Unquoted strings (within interpolations).
("str_legal", "${test:a/-\\+.$*, \\\\}", ["a/-\\+.$*", "\\"]),
("str_legal", "${test:a/-\\+.$*@, \\\\}", ["a/-\\+.$*@", "\\"]),
("str_illegal_1", "${test:a,=b}", GrammarParseError),
("str_illegal_2", f"${{test:{chr(200)}}}", GrammarParseError),
("str_illegal_3", f"${{test:{chr(129299)}}}", GrammarParseError),
Expand Down

0 comments on commit af3870d

Please sign in to comment.