aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/math/number/rev.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-05 22:52:26 -0400
committerEduardo Julian2021-09-05 22:52:26 -0400
commit132ffdae1add622c8a3c6065d7730a8fe8ea5e78 (patch)
tree540310f190007d192b892db2d0a520d17b73ad48 /stdlib/source/test/lux/math/number/rev.lux
parent09e2747bf8c6dcdc1d7318f2490f0de37d77b39f (diff)
Changed the syntax of do/be's (co)monad bindings.
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/math/number/rev.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/math/number/rev.lux b/stdlib/source/test/lux/math/number/rev.lux
index 0398a55a2..bb379d597 100644
--- a/stdlib/source/test/lux/math/number/rev.lux
+++ b/stdlib/source/test/lux/math/number/rev.lux
@@ -82,13 +82,13 @@
(_.cover [/.-]
(and (/.= .0 (/.- sample sample))
(/.= sample (/.- .0 sample)))))
- (do {! random.monad}
+ (do [! random.monad]
[left random.rev
right random.rev]
(_.cover [/.*]
(and (/.< left (/.* left right))
(/.< right (/.* left right)))))
- (do {! random.monad}
+ (do [! random.monad]
[.let [dividend (\ ! each (i64.and (hex "FFFF"))
random.rev)
divisor (\ ! each (|>> (i64.and (hex "F"))
@@ -131,7 +131,7 @@
(/.ratio dividend)
(n.= scale)))
))
- (do {! random.monad}
+ (do [! random.monad]
[dividend random.rev
divisor (random.only (|>> (/.= .0) not)
random.rev)]
@@ -155,7 +155,7 @@
(_.cover [/.reciprocal]
(/.= (/.reciprocal sample)
(|> sample /.reciprocal .nat /.reciprocal .nat /.reciprocal))))
- (do {! random.monad}
+ (do [! random.monad]
[expected (\ ! each (|>> f.abs (f.% +1.0))
random.safe_frac)
sample random.rev]