aboutsummaryrefslogtreecommitdiff
path: root/tests/pattern
diff options
context:
space:
mode:
authornatsuoto <[email protected]>2026-07-01 17:38:09 +0530
committernatsuoto <[email protected]>2026-07-01 17:38:09 +0530
commit060b4089f93ea7add1ca70a2b63e6411967f9a97 (patch)
treebf9051c6478b532f79b8855886092384f6acfdb4 /tests/pattern
parent7e5df3512b2a00fb225caf45979350395b40a823 (diff)
downloadedify-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.py2
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():