aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/writer.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/control/writer.lux')
-rw-r--r--stdlib/source/test/lux/control/writer.lux42
1 files changed, 21 insertions, 21 deletions
diff --git a/stdlib/source/test/lux/control/writer.lux b/stdlib/source/test/lux/control/writer.lux
index 2e8989f1f..9842de747 100644
--- a/stdlib/source/test/lux/control/writer.lux
+++ b/stdlib/source/test/lux/control/writer.lux
@@ -39,25 +39,25 @@
right random.nat]
(<| (_.covering /._)
(_.for [/.Writer])
- ($_ _.and
- (_.for [/.functor]
- ($functor.spec (..injection text.monoid) ..comparison /.functor))
- (_.for [/.apply]
- ($apply.spec (..injection text.monoid) ..comparison (/.apply text.monoid)))
- (_.for [/.monad]
- ($monad.spec (..injection text.monoid) ..comparison (/.monad text.monoid)))
+ (all _.and
+ (_.for [/.functor]
+ ($functor.spec (..injection text.monoid) ..comparison /.functor))
+ (_.for [/.apply]
+ ($apply.spec (..injection text.monoid) ..comparison (/.apply text.monoid)))
+ (_.for [/.monad]
+ ($monad.spec (..injection text.monoid) ..comparison (/.monad text.monoid)))
- (_.cover [/.write]
- (text#= log
- (product.left (/.write log))))
- (_.cover [/.with /.lifted]
- (let [lifted (/.lifted text.monoid io.monad)
- (open "io#[0]") io.monad]
- (|> (do (/.with text.monoid io.monad)
- [a (lifted (io#in left))
- b (in right)]
- (in (n.+ a b)))
- io.run!
- product.right
- (n.= (n.+ left right)))))
- ))))
+ (_.cover [/.write]
+ (text#= log
+ (product.left (/.write log))))
+ (_.cover [/.with /.lifted]
+ (let [lifted (/.lifted text.monoid io.monad)
+ (open "io#[0]") io.monad]
+ (|> (do (/.with text.monoid io.monad)
+ [a (lifted (io#in left))
+ b (in right)]
+ (in (n.+ a b)))
+ io.run!
+ product.right
+ (n.= (n.+ left right)))))
+ ))))