aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/parser/cli.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/control/parser/cli.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/test/lux/control/parser/cli.lux b/stdlib/source/test/lux/control/parser/cli.lux
index b304a2ab2..c41a33878 100644
--- a/stdlib/source/test/lux/control/parser/cli.lux
+++ b/stdlib/source/test/lux/control/parser/cli.lux
@@ -11,7 +11,7 @@
["p" parser]]
[data
[number
- ["." nat ("#@." decimal)]]
+ ["n" nat ("#@." decimal)]]
["." text ("#@." equivalence)]
[collection
["." list]]]]
@@ -22,8 +22,8 @@
Test
(<| (_.context (name.module (name-of /._)))
(do r.monad
- [num-args (|> r.nat (:: @ map (n/% 10)))
- #let [gen-arg (:: @ map nat@encode r.nat)]
+ [num-args (|> r.nat (:: @ map (n.% 10)))
+ #let [gen-arg (:: @ map n@encode r.nat)]
yes gen-arg
#let [gen-ignore (r.filter (|>> (text@= yes) not)
(r.unicode 5))]
@@ -52,12 +52,12 @@
(#try.Success _)
#0))))
(_.test "Can use custom token parsers."
- (|> (/.run (/.parse nat@decode) (list yes))
+ (|> (/.run (/.parse n@decode) (list yes))
(case> (#try.Failure _)
#0
(#try.Success parsed)
- (text@= (nat@encode parsed)
+ (text@= (n@encode parsed)
yes))))
(_.test "Can query if there are any more inputs."
(and (|> (/.run /.end (list))