aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/parser/text.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/control/parser/text.lux32
1 files changed, 16 insertions, 16 deletions
diff --git a/stdlib/source/test/lux/control/parser/text.lux b/stdlib/source/test/lux/control/parser/text.lux
index 8377f6b4b..b340e8450 100644
--- a/stdlib/source/test/lux/control/parser/text.lux
+++ b/stdlib/source/test/lux/control/parser/text.lux
@@ -42,7 +42,7 @@
(def: (should_fail' sample parser exception)
(All (_ a e) (-> Text (/.Parser a) (Exception e) Bit))
(case (/.result parser sample)
- {#try.Failure error}
+ {try.#Failure error}
(exception.match? exception error)
_
@@ -51,7 +51,7 @@
(def: (should_fail sample parser)
(All (_ a) (-> Text (/.Parser a) Bit))
(case (/.result parser sample)
- {#try.Failure _}
+ {try.#Failure _}
true
_
@@ -301,10 +301,10 @@
(_.cover [/.result /.end!]
(and (|> (/.result /.end!
"")
- (!expect {#try.Success _}))
+ (!expect {try.#Success _}))
(|> (/.result /.end!
sample)
- (!expect {#try.Failure _})))))
+ (!expect {try.#Failure _})))))
(do [! random.monad]
[.let [size 10]
expected (random.unicode size)
@@ -313,15 +313,15 @@
(_.cover [/.this /.cannot_match]
(and (|> (/.result (/.this expected)
expected)
- (!expect {#try.Success []}))
+ (!expect {try.#Success []}))
(|> (/.result (/.this expected)
dummy)
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.cannot_match error)))))))
(_.cover [/.Slice /.slice /.cannot_slice]
(|> ""
(/.result (/.slice /.any!))
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.cannot_slice error)))))
(do [! random.monad]
[expected (random.unicode 1)]
@@ -337,14 +337,14 @@
(and (..should_pass expected (<>.before /.any /.next))
(|> ""
(/.result (<>.before /.any /.next))
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.cannot_parse error)))))))
(do [! random.monad]
[dummy (random.unicode 1)]
(_.cover [/.unconsumed_input]
(|> (format dummy dummy)
(/.result /.any)
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.unconsumed_input error))))))
(do [! random.monad]
[sample (random.unicode 1)]
@@ -355,7 +355,7 @@
_ /.any
post /.offset]
(in [pre post])))
- (!expect {#try.Success [0 1]}))))
+ (!expect {try.#Success [0 1]}))))
(do [! random.monad]
[left (random.unicode 1)
right (random.unicode 1)
@@ -369,7 +369,7 @@
_ /.any]
(in (and (text\= input pre)
(text\= right post)))))
- (!expect {#try.Success #1}))))
+ (!expect {try.#Success #1}))))
(do [! random.monad]
[left (random.unicode 1)
right (random.unicode 1)
@@ -378,7 +378,7 @@
(_.cover [/.enclosed]
(|> (format left expected right)
(/.result (/.enclosed [left right] (/.this expected)))
- (!expect {#try.Success _}))))
+ (!expect {try.#Success _}))))
(do [! random.monad]
[input (random.unicode 1)
output (random.unicode 1)]
@@ -387,13 +387,13 @@
(/.result (do <>.monad
[_ (/.local input (/.this input))]
(/.this output)))
- (!expect {#try.Success _}))))
+ (!expect {try.#Success _}))))
(do [! random.monad]
[expected (\ ! each (|>> (n.% 8) (\ n.octal encoded)) random.nat)]
(_.cover [/.then]
(|> (list (code.text expected))
(<c>.result (/.then /.octal <c>.text))
- (!expect (^multi {#try.Success actual}
+ (!expect (^multi {try.#Success actual}
(text\= expected actual))))))
(do [! random.monad]
[invalid (random.ascii/upper 1)
@@ -405,13 +405,13 @@
(and (..should_pass (text.of_char expected) (/.not /.upper))
(|> invalid
(/.result (/.not /.upper))
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.expected_to_fail error))))
(..should_pass! (text.of_char expected) (/.not! upper!))
(|> invalid
(/.result (/.not! upper!))
- (!expect (^multi {#try.Failure error}
+ (!expect (^multi {try.#Failure error}
(exception.match? /.expected_to_fail error)))))))
(do [! random.monad]
[upper (random.ascii/upper 1)