aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 17:14:11 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 17:14:11 -0500
commitc607b97732c9922aa6fef3a0fe1055b028d5f0c2 (patch)
treec314f3fb014d34b919998f58c701b2a0b800515a /test
parentc5f315e338adb09bcfc4c192ccefedfaf88202fe (diff)
Add Num.near() function
Diffstat (limited to 'test')
-rw-r--r--test/nums.tm5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/nums.tm b/test/nums.tm
index c5b19325..d031bdeb 100644
--- a/test/nums.tm
+++ b/test/nums.tm
@@ -30,3 +30,8 @@
= yes
>> nan == nan
= no
+
+>> Num.PI:cos():near(-1)
+= yes
+>> Num.PI:sin():near(0)
+= yes