aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/data/text/regex.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/data/text/regex.lux')
-rw-r--r--stdlib/source/test/lux/data/text/regex.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/data/text/regex.lux b/stdlib/source/test/lux/data/text/regex.lux
index 0ab71cbaa..58c26d067 100644
--- a/stdlib/source/test/lux/data/text/regex.lux
+++ b/stdlib/source/test/lux/data/text/regex.lux
@@ -62,7 +62,7 @@
(in (list (` (|> (~ input)
(<text>.result (~ regex))
(pipe.case
- (^ {try.#Success (~ pattern)})
+ (pattern {try.#Success (~ pattern)})
true
(~ g!_)
@@ -305,10 +305,10 @@
[sample1 (random.unicode 3)
sample2 (random.unicode 3)
sample3 (random.unicode 4)]
- (_.cover [/.^regex]
+ (_.cover [/.pattern]
(case (format sample1 "-" sample2 "-" sample3)
- (/.^regex "(.{3})-(.{3})-(.{4})"
- [_ match1 match2 match3])
+ (/.pattern "(.{3})-(.{3})-(.{4})"
+ [_ match1 match2 match3])
(and (text#= sample1 match1)
(text#= sample2 match2)
(text#= sample3 match3))