diff options
| author | natsuoto <[email protected]> | 2026-07-01 17:38:09 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-01 17:38:09 +0530 |
| commit | 060b4089f93ea7add1ca70a2b63e6411967f9a97 (patch) | |
| tree | bf9051c6478b532f79b8855886092384f6acfdb4 /tests/pattern | |
| parent | 7e5df3512b2a00fb225caf45979350395b40a823 (diff) | |
| download | edify-060b4089f93ea7add1ca70a2b63e6411967f9a97.tar.xz edify-060b4089f93ea7add1ca70a2b63e6411967f9a97.zip | |
feat!: to_regex() returns the Regex wrapper instead of raw re.Pattern
Diffstat (limited to 'tests/pattern')
| -rw-r--r-- | tests/pattern/composition.test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pattern/composition.test.py b/tests/pattern/composition.test.py index f58df57..18a6bc2 100644 --- a/tests/pattern/composition.test.py +++ b/tests/pattern/composition.test.py @@ -20,7 +20,7 @@ def test_pattern_exposes_to_regex_string_terminal(): def test_pattern_exposes_to_regex_terminal(): pattern = Pattern().digit() compiled = pattern.to_regex() - assert compiled.pattern == "\\d" + assert compiled.source == "\\d" def test_pattern_supports_nested_use_composition(): |
