aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/math.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/test/lux/math.lux')
-rw-r--r--stdlib/source/test/lux/math.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/test/lux/math.lux b/stdlib/source/test/lux/math.lux
index 2c34e8ed5..11f826ce4 100644
--- a/stdlib/source/test/lux/math.lux
+++ b/stdlib/source/test/lux/math.lux
@@ -36,7 +36,7 @@
($_ _.and
(<| (_.context "Trigonometry")
(do {! r.monad}
- [angle (|> r.safe-frac (:: ! map (f.* /.tau)))]
+ [angle (|> r.safe-frac (\ ! map (f.* /.tau)))]
($_ _.and
(_.test "Sine and arc-sine are inverse functions."
(trigonometric-symmetry /.sin /.asin angle))
@@ -47,7 +47,7 @@
)))
(<| (_.context "Rounding")
(do {! r.monad}
- [sample (|> r.safe-frac (:: ! map (f.* +1000.0)))]
+ [sample (|> r.safe-frac (\ ! map (f.* +1000.0)))]
($_ _.and
(_.test "The ceiling will be an integer value, and will be >= the original."
(let [ceil'd (/.ceil sample)]
@@ -66,12 +66,12 @@
)))
(<| (_.context "Exponentials and logarithms")
(do {! r.monad}
- [sample (|> r.safe-frac (:: ! map (f.* +10.0)))]
+ [sample (|> r.safe-frac (\ ! map (f.* +10.0)))]
(_.test "Logarithm is the inverse of exponential."
(|> sample /.exp /.log (within? +0.000000000000001 sample)))))
(<| (_.context "Greatest-Common-Divisor and Least-Common-Multiple")
(do {! r.monad}
- [#let [gen-nat (|> r.nat (:: ! map (|>> (n.% 1000) (n.max 1))))]
+ [#let [gen-nat (|> r.nat (\ ! map (|>> (n.% 1000) (n.max 1))))]
x gen-nat
y gen-nat]
($_ _.and