aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/type/check.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/lux/type/check.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/test/lux/type/check.lux b/stdlib/source/test/lux/type/check.lux
index 5a0942252..d4bf9ed8e 100644
--- a/stdlib/source/test/lux/type/check.lux
+++ b/stdlib/source/test/lux/type/check.lux
@@ -81,11 +81,11 @@
(def: (build-ring num-connections)
(-> Nat (/.Check [[Nat Type] (List [Nat Type]) [Nat Type]]))
- (do {@ /.monad}
+ (do {! /.monad}
[[head-id head-type] /.var
- ids+types (monad.seq @ (list.repeat num-connections /.var))
- [tail-id tail-type] (monad.fold @ (function (_ [tail-id tail-type] [_head-id _head-type])
- (do @
+ ids+types (monad.seq ! (list.repeat num-connections /.var))
+ [tail-id tail-type] (monad.fold ! (function (_ [tail-id tail-type] [_head-id _head-type])
+ (do !
[_ (/.check head-type tail-type)]
(wrap [tail-id tail-type])))
[head-id head-type]
@@ -188,8 +188,8 @@
_ (/.check var Nothing)]
(/.check .Bit var))))
)
- (do {@ r.monad}
- [num-connections (|> r.nat (:: @ map (n.% 100)))
+ (do {! r.monad}
+ [num-connections (|> r.nat (:: ! map (n.% 100)))
boundT (|> ..type (r.filter (|>> (case> (#.Var _) #0 _ #1))))
pick-pcg (r.and r.nat r.nat)]
($_ _.and
@@ -209,14 +209,14 @@
expected-size?
same-vars?))))))
(_.test "When a var in a ring is bound, all the ring is bound."
- (type-checks? (do {@ /.monad}
+ (type-checks? (do {! /.monad}
[[[head-id headT] ids+types tailT] (build-ring num-connections)
#let [ids (list@map product.left ids+types)]
_ (/.check headT boundT)
head-bound (/.read head-id)
- tail-bound (monad.map @ /.read ids)
+ tail-bound (monad.map ! /.read ids)
headR (/.ring head-id)
- tailR+ (monad.map @ /.ring ids)]
+ tailR+ (monad.map ! /.ring ids)]
(let [rings-were-erased? (and (set.empty? headR)
(list.every? set.empty? tailR+))
same-types? (list.every? (type@= boundT) (list& (maybe.default headT head-bound)