aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/math/number/frac.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/frac.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/frac.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/math/number/frac.lux b/stdlib/source/test/lux/math/number/frac.lux
index 6a6e6eb4f..baedf891a 100644
--- a/stdlib/source/test/lux/math/number/frac.lux
+++ b/stdlib/source/test/lux/math/number/frac.lux
@@ -50,7 +50,7 @@
(def: predicate
Test
- (do {! random.monad}
+ (do [! random.monad]
[sample ..random
shift (\ ! each /.abs ..random)]
($_ _.and
@@ -76,15 +76,15 @@
(def: conversion
Test
($_ _.and
- (do {! random.monad}
+ (do [! random.monad]
[expected (\ ! each (n.% 1,000,000) random.nat)]
(_.cover [/.nat]
(|> expected n.frac /.nat (n.= expected))))
- (do {! random.monad}
+ (do [! random.monad]
[expected (\ ! each (i.% +1,000,000) random.int)]
(_.cover [/.int]
(|> expected i.frac /.int (i.= expected))))
- (do {! random.monad}
+ (do [! random.monad]
[expected (\ ! each (|>> (i64.left_shifted 52) .rev)
random.nat)]
(_.cover [/.rev]