aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/math.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 db314f400..96ba96e35 100644
--- a/stdlib/source/test/lux/math.lux
+++ b/stdlib/source/test/lux/math.lux
@@ -112,13 +112,13 @@
big (\ ! map (f.* +1,000,000,000.00) random.safe_frac)]
(template.let [(odd! <function>)
[(_.cover [<function>]
- (~= (f.negate (<function> angle))
- (<function> (f.negate angle))))]
+ (~= (f.opposite (<function> angle))
+ (<function> (f.opposite angle))))]
(even! <function>)
[(_.cover [<function>]
(~= (<function> angle)
- (<function> (f.negate angle))))]
+ (<function> (f.opposite angle))))]
(inverse! <left> <right> <input>)
[(_.cover [<left> <right>]
@@ -157,7 +157,7 @@
(f.+ /.pi (/.atan (f./ x y)))))]
(and (~= expected actual)
(~= tau/4 (/.atan/2 +0.0 (f.abs y)))
- (~= (f.negate tau/4) (/.atan/2 +0.0 (f.negate (f.abs y))))
+ (~= (f.opposite tau/4) (/.atan/2 +0.0 (f.opposite (f.abs y))))
(f.not_a_number? (/.atan/2 +0.0 +0.0))))))
(do {! random.monad}
[of (\ ! map (|>> (n.% 10) inc) random.nat)]