aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux.lux')
-rw-r--r--stdlib/source/test/lux.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/test/lux.lux b/stdlib/source/test/lux.lux
index 809e906fb..61e4489f3 100644
--- a/stdlib/source/test/lux.lux
+++ b/stdlib/source/test/lux.lux
@@ -27,7 +27,7 @@
[territory (#+)]]
["%" data/text/format (#+ format)]
[math
- ["." random (#+ Random) ("#@." functor)]]
+ ["." random (#+ Random) ("#\." functor)]]
## TODO: Test these modules
## [data
## [format
@@ -239,8 +239,8 @@
Test
($_ _.and
(do random.monad
- [factor (random@map (|>> (n.% 10) (n.max 1)) random.nat)
- iterations (random@map (n.% 100) random.nat)
+ [factor (random\map (|>> (n.% 10) (n.max 1)) random.nat)
+ iterations (random\map (n.% 100) random.nat)
#let [expected (n.* factor iterations)]]
(_.test "Can write loops."
(n.= expected
@@ -362,10 +362,10 @@
" " (%.name (name-of <backward>))))
(..conversion <gen> <forward> <backward> <=>))]
- [i.= .nat .int (random@map (i.% +1,000,000) random.int)]
- [n.= .int .nat (random@map (n.% 1,000,000) random.nat)]
- [i.= i.frac f.int (random@map (i.% +1,000,000) random.int)]
- [f.= f.int i.frac (random@map (|>> (i.% +1,000,000) i.frac) random.int)]
+ [i.= .nat .int (random\map (i.% +1,000,000) random.int)]
+ [n.= .int .nat (random\map (n.% 1,000,000) random.nat)]
+ [i.= i.frac f.int (random\map (i.% +1,000,000) random.int)]
+ [f.= f.int i.frac (random\map (|>> (i.% +1,000,000) i.frac) random.int)]
[r.= r.frac f.rev frac-rev]
)))))
(<| (_.context "Prelude macros.")