summaryrefslogtreecommitdiff
path: root/tests/modules/math/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-21 10:07:53 +0800
committerruki <[email protected]>2020-06-21 10:07:53 +0800
commit4dea5c6453ec77f7fad59047fe9541f0739dd713 (patch)
tree876c487690009b911d34d11677521b15574f32d8 /tests/modules/math/test.lua
parent42deccd94fe2a1c5ef6e181ee4c5128872182046 (diff)
improve math test
Diffstat (limited to 'tests/modules/math/test.lua')
-rw-r--r--tests/modules/math/test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/math/test.lua b/tests/modules/math/test.lua
index 3d05adb61..bcbd11fd3 100644
--- a/tests/modules/math/test.lua
+++ b/tests/modules/math/test.lua
@@ -4,8 +4,8 @@ function test_isinf(t)
t:require_not(math.isinf(0))
t:require_not(math.isinf(math.nan))
- t:are_same(math.isinf(math.huge), 1)
- t:are_same(math.isinf(-math.huge), -1)
+ t:are_same(math.isinf(math.inf), 1)
+ t:are_same(math.isinf(-math.inf), -1)
end
function test_isnan(t)