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.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/test/lux/data/text/regex.lux b/stdlib/source/test/lux/data/text/regex.lux
index d5be70ce1..1b1b8ec95 100644
--- a/stdlib/source/test/lux/data/text/regex.lux
+++ b/stdlib/source/test/lux/data/text/regex.lux
@@ -28,7 +28,7 @@
(-> (Parser Text) Text Bit)
(|> input
(<text>.result regex)
- (pipe.case
+ (pipe.when
{try.#Success parsed}
(text#= parsed input)
@@ -39,7 +39,7 @@
(-> Text (Parser Text) Text Bit)
(|> input
(<text>.result regex)
- (pipe.case
+ (pipe.when
{try.#Success parsed}
(text#= test parsed)
@@ -50,7 +50,7 @@
(All (_ a) (-> (Parser a) Text Bit))
(|> input
(<text>.result regex)
- (pipe.case
+ (pipe.when
{try.#Failure _}
true
@@ -64,7 +64,7 @@
(macro.with_symbols [g!message g!_]
(in (list (` (|> (, input)
(<text>.result (, regex))
- (pipe.case
+ (pipe.when
{try.#Success (, pattern)}
true
@@ -282,7 +282,7 @@
(def expands?
(syntax (_ [form <code>.any])
(function (_ lux)
- {try.#Success [lux (list (code.bit (case (expansion.single form lux)
+ {try.#Success [lux (list (code.bit (when (expansion.single form lux)
{try.#Success _}
true
@@ -310,7 +310,7 @@
sample2 (random.unicode 3)
sample3 (random.unicode 4)]
(_.coverage [/.pattern]
- (case (format sample1 "-" sample2 "-" sample3)
+ (when (format sample1 "-" sample2 "-" sample3)
(/.pattern "(.{3})-(.{3})-(.{4})"
[_ match1 match2 match3])
(and (text#= sample1 match1)