aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/abstract/monad.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/abstract/monad.lux52
1 files changed, 26 insertions, 26 deletions
diff --git a/stdlib/source/test/lux/abstract/monad.lux b/stdlib/source/test/lux/abstract/monad.lux
index cb5654aed..93d060041 100644
--- a/stdlib/source/test/lux/abstract/monad.lux
+++ b/stdlib/source/test/lux/abstract/monad.lux
@@ -1,17 +1,17 @@
(.using
- [library
- [lux "*"
- ["_" test {"+" Test}]
- [data
- ["[0]" identity {"+" Identity}]
- [collection
- ["[0]" list ("[1]#[0]" functor mix)]]]
- [math
- ["[0]" random]
- [number
- ["n" nat]]]]]
- [\\library
- ["[0]" / {"+" Monad do}]])
+ [library
+ [lux "*"
+ ["_" test {"+" Test}]
+ [data
+ ["[0]" identity {"+" Identity}]
+ [collection
+ ["[0]" list ("[1]#[0]" functor mix)]]]
+ [math
+ ["[0]" random]
+ [number
+ ["n" nat]]]]]
+ [\\library
+ ["[0]" / {"+" Monad do}]])
(def: .public test
Test
@@ -22,36 +22,36 @@
($_ _.and
(_.cover [/.do]
(n.= (++ mono)
- (: (Identity Nat)
- (/.do identity.monad
- [sample (in mono)]
- (in (++ sample))))))
+ (is (Identity Nat)
+ (/.do identity.monad
+ [sample (in mono)]
+ (in (++ sample))))))
(_.cover [/.then]
(n.= (++ mono)
- (: (Identity Nat)
- (/.then identity.monad
- (|>> ++ (# identity.monad in))
- (# identity.monad in 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)))
- (: (List (Identity Nat)))
+ (is (List (Identity Nat)))
(/.all identity.monad)
- (: (Identity (List Nat))))))
+ (is (Identity (List Nat))))))
(_.cover [/.each]
(# (list.equivalence n.equivalence) =
(list#each ++ poly)
(|> poly
(/.each identity.monad (|>> ++ (# identity.monad in)))
- (: (Identity (List Nat))))))
+ (is (Identity (List Nat))))))
(_.cover [/.only]
(# (list.equivalence n.equivalence) =
(list.only n.even? poly)
(|> poly
(/.only identity.monad (|>> n.even? (# identity.monad in)))
- (: (Identity (List Nat))))))
+ (is (Identity (List Nat))))))
(_.cover [/.mix]
(n.= (list#mix n.+ 0 poly)
(|> poly
@@ -60,5 +60,5 @@
(# identity.monad in
(n.+ part whole)))
0)
- (: (Identity Nat)))))
+ (is (Identity Nat)))))
))))