Skip to content

Commit aa47d4e

Browse files
committed
feat(math): adding nan and inf test on strings
1 parent 2e533cd commit aa47d4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/math-tests.ark

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
(test:eq (builtin__math:floor 5) (math:floor 5))
1010
(test:eq (builtin__math:round 5) (math:round 5))
1111
(test:eq (builtin__math:NaN? 5) (math:NaN? 5))
12+
(test:expect (not (math:NaN? "hello")))
1213
(test:eq (builtin__math:Inf? 5) (math:Inf? 5))
14+
(test:expect (not (math:Inf? "hello")))
1315
(test:eq builtin__math:pi math:pi)
1416
(test:eq builtin__math:e math:e)
1517
(test:eq builtin__math:tau math:tau)

0 commit comments

Comments
 (0)