aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/parser/text.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/control/parser/text.lux')
-rw-r--r--stdlib/source/test/lux/control/parser/text.lux19
1 files changed, 8 insertions, 11 deletions
diff --git a/stdlib/source/test/lux/control/parser/text.lux b/stdlib/source/test/lux/control/parser/text.lux
index 30ebe0cad..08dddb051 100644
--- a/stdlib/source/test/lux/control/parser/text.lux
+++ b/stdlib/source/test/lux/control/parser/text.lux
@@ -16,7 +16,9 @@
["n" nat]]
[collection
["." set]
- ["." list ("#@." functor)]]]
+ ["." list ("#@." functor)]
+ [tree
+ ["." finger]]]]
[math
["." random]]
[macro
@@ -93,19 +95,19 @@
(..should-fail (text.from-code invalid) /.lower))))
(do {@ random.monad}
[expected (:: @ map (n.% 10) random.nat)
- invalid (random.char (unicode.set (list unicode.aegean-numbers)))]
+ invalid (random.char (unicode.set [unicode.aegean-numbers (list)]))]
(_.cover [/.decimal]
(and (..should-pass (:: n.decimal encode expected) /.decimal)
(..should-fail (text.from-code invalid) /.decimal))))
(do {@ random.monad}
[expected (:: @ map (n.% 8) random.nat)
- invalid (random.char (unicode.set (list unicode.aegean-numbers)))]
+ invalid (random.char (unicode.set [unicode.aegean-numbers (list)]))]
(_.cover [/.octal]
(and (..should-pass (:: n.octal encode expected) /.octal)
(..should-fail (text.from-code invalid) /.octal))))
(do {@ random.monad}
[expected (:: @ map (n.% 16) random.nat)
- invalid (random.char (unicode.set (list unicode.aegean-numbers)))]
+ invalid (random.char (unicode.set [unicode.aegean-numbers (list)]))]
(_.cover [/.hexadecimal]
(and (..should-pass (:: n.hex encode expected) /.hexadecimal)
(..should-fail (text.from-code invalid) /.hexadecimal))))
@@ -315,14 +317,9 @@
(exception.match? /.cannot-match error)))))))
(_.cover [/.Slice /.slice /.cannot-slice]
(|> ""
- (/.run (do <>.monad
- [#let [_ (log! " PRE SLICE")]
- slice (/.slice /.any!)
- #let [_ (log! "POST SLICE")]]
- (wrap slice)))
+ (/.run (/.slice /.any!))
(!expect (^multi (#try.Failure error)
- (exec (log! (format "error = " error))
- (exception.match? /.cannot-slice error))))))
+ (exception.match? /.cannot-slice error)))))
(do {@ random.monad}
[expected (random.unicode 1)]
(_.cover [/.any /.any!]