aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/abstract/monad.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/abstract/monad.lux')
-rw-r--r--stdlib/source/test/lux/abstract/monad.lux86
1 files changed, 43 insertions, 43 deletions
diff --git a/stdlib/source/test/lux/abstract/monad.lux b/stdlib/source/test/lux/abstract/monad.lux
index 93d060041..dbd7cf10e 100644
--- a/stdlib/source/test/lux/abstract/monad.lux
+++ b/stdlib/source/test/lux/abstract/monad.lux
@@ -19,46 +19,46 @@
[mono random.nat
poly (random.list 10 random.nat)]
(<| (_.covering /._)
- ($_ _.and
- (_.cover [/.do]
- (n.= (++ mono)
- (is (Identity Nat)
- (/.do identity.monad
- [sample (in mono)]
- (in (++ sample))))))
- (_.cover [/.then]
- (n.= (++ mono)
- (is (Identity Nat)
- (/.then identity.monad
- (|>> ++ (# identity.monad in))
- (# identity.monad in mono)))))
- (_.cover [/.all]
- (# (list.equivalence n.equivalence) =
- (list#each ++ poly)
- (|> poly
- (list#each (|>> ++ (# identity.monad in)))
- (is (List (Identity Nat)))
- (/.all identity.monad)
- (is (Identity (List Nat))))))
- (_.cover [/.each]
- (# (list.equivalence n.equivalence) =
- (list#each ++ poly)
- (|> poly
- (/.each identity.monad (|>> ++ (# identity.monad in)))
- (is (Identity (List Nat))))))
- (_.cover [/.only]
- (# (list.equivalence n.equivalence) =
- (list.only n.even? poly)
- (|> poly
- (/.only identity.monad (|>> n.even? (# identity.monad in)))
- (is (Identity (List Nat))))))
- (_.cover [/.mix]
- (n.= (list#mix n.+ 0 poly)
- (|> poly
- (/.mix identity.monad
- (function (_ part whole)
- (# identity.monad in
- (n.+ part whole)))
- 0)
- (is (Identity Nat)))))
- ))))
+ (all _.and
+ (_.cover [/.do]
+ (n.= (++ mono)
+ (is (Identity Nat)
+ (/.do identity.monad
+ [sample (in mono)]
+ (in (++ sample))))))
+ (_.cover [/.then]
+ (n.= (++ mono)
+ (is (Identity Nat)
+ (/.then identity.monad
+ (|>> ++ (# identity.monad in))
+ (# identity.monad in mono)))))
+ (_.cover [/.all]
+ (# (list.equivalence n.equivalence) =
+ (list#each ++ poly)
+ (|> poly
+ (list#each (|>> ++ (# identity.monad in)))
+ (is (List (Identity Nat)))
+ (/.all identity.monad)
+ (is (Identity (List Nat))))))
+ (_.cover [/.each]
+ (# (list.equivalence n.equivalence) =
+ (list#each ++ poly)
+ (|> poly
+ (/.each identity.monad (|>> ++ (# identity.monad in)))
+ (is (Identity (List Nat))))))
+ (_.cover [/.only]
+ (# (list.equivalence n.equivalence) =
+ (list.only n.even? poly)
+ (|> poly
+ (/.only identity.monad (|>> n.even? (# identity.monad in)))
+ (is (Identity (List Nat))))))
+ (_.cover [/.mix]
+ (n.= (list#mix n.+ 0 poly)
+ (|> poly
+ (/.mix identity.monad
+ (function (_ part whole)
+ (# identity.monad in
+ (n.+ part whole)))
+ 0)
+ (is (Identity Nat)))))
+ ))))