aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/control/function/mixin.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/control/function/mixin.lux')
-rw-r--r--stdlib/source/test/lux/control/function/mixin.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/test/lux/control/function/mixin.lux b/stdlib/source/test/lux/control/function/mixin.lux
index 9fce7f116..9d403e17d 100644
--- a/stdlib/source/test/lux/control/function/mixin.lux
+++ b/stdlib/source/test/lux/control/function/mixin.lux
@@ -55,7 +55,7 @@
(_.coverage [/.fixed]
(let [factorial (/.fixed
(function (_ delegate again input)
- (case input
+ (when input
(^.or 0 1) 1
_ (n.* input (again (-- input))))))]
(n.= expected
@@ -63,7 +63,7 @@
(_.coverage [/.mixed]
(let [bottom (is (/.Mixin Nat Nat)
(function (_ delegate again input)
- (case input
+ (when input
(^.or 0 1) 1
_ (delegate input))))
multiplication (is (/.Mixin Nat Nat)
@@ -75,7 +75,7 @@
(_.coverage [/.nothing]
(let [loop (is (/.Mixin Nat Nat)
(function (_ delegate again input)
- (case input
+ (when input
(^.or 0 1) 1
_ (n.* input (delegate (-- input))))))
left (/.fixed (/.mixed /.nothing loop))
@@ -90,7 +90,7 @@
1))
bottom? (is (Predicate Nat)
(function (_ input)
- (case input
+ (when input
(^.or 0 1) true
_ false)))
multiplication (is (/.Mixin Nat Nat)
@@ -132,7 +132,7 @@
(let [factorial (/.fixed
(/.of_recursive
(function (_ again input)
- (case input
+ (when input
(^.or 0 1) 1
_ (n.* input (again (-- input)))))))]
(n.= expected