Skip to content

Commit

Permalink
Add test of escaped interpolations with simple regex matching
Browse files Browse the repository at this point in the history
  • Loading branch information
odelalleau committed Feb 11, 2021
1 parent 5946383 commit 5c03808
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ def test_make_hashable_type_error() -> None:
"${foo:bar}",
"${foo : bar, baz, boz}",
"${foo:bar,0,a-b+c*d/$.%@}",
"\\${foo}",
],
)
def test_match_simple_interpolation_pattern(expression: str) -> None:
Expand All @@ -637,6 +638,7 @@ def test_match_simple_interpolation_pattern(expression: str) -> None:
"${foo.${bar}}",
"${foo:${bar}}",
"${foo:'hello'}",
"\\${foo",
],
)
def test_do_not_match_simple_interpolation_pattern(expression: str) -> None:
Expand Down

0 comments on commit 5c03808

Please sign in to comment.