aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/ffi.old.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/ffi.old.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/test/lux/ffi.old.lux b/stdlib/source/test/lux/ffi.old.lux
index 701828389..22c0a636a 100644
--- a/stdlib/source/test/lux/ffi.old.lux
+++ b/stdlib/source/test/lux/ffi.old.lux
@@ -89,13 +89,13 @@
Test
(do {! random.monad}
[long random.int
- int (\ ! map (|>> /.long_to_int) random.int)
- char (\ ! map (|>> /.long_to_int /.int_to_char) random.int)
+ int (\ ! each (|>> /.long_to_int) random.int)
+ char (\ ! each (|>> /.long_to_int /.int_to_char) random.int)
double (|> random.frac
(random.only (|>> f.not_a_number? not)))
float (|> random.frac
(random.only (|>> f.not_a_number? not))
- (\ ! map (|>> /.double_to_float)))]
+ (\ ! each (|>> /.double_to_float)))]
(`` ($_ _.and
(~~ (template [<=> <sample> <to> <from>]
[(_.cover [<to> <from>]
@@ -156,8 +156,8 @@
(def: arrays
Test
(do {! random.monad}
- [size (|> random.nat (\ ! map (|>> (n.% 100) (n.max 1))))
- idx (|> random.nat (\ ! map (n.% size)))
+ [size (|> random.nat (\ ! each (|>> (n.% 100) (n.max 1))))
+ idx (|> random.nat (\ ! each (n.% size)))
value random.int]
($_ _.and
(_.cover [/.array /.length]