From e6f1f7469f6b56a69d6fd63dbc4ede8dafc81610 Mon Sep 17 00:00:00 2001 From: Rerumu Date: Thu, 16 Jun 2022 00:39:02 -0400 Subject: [PATCH] Fix test `NaN` sign --- dev-test/tests/assertion.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-test/tests/assertion.lua b/dev-test/tests/assertion.lua index 5a0b1aa..2dae3d6 100644 --- a/dev-test/tests/assertion.lua +++ b/dev-test/tests/assertion.lua @@ -1,9 +1,9 @@ local loaded = {} local linked = {} -local LUA_NAN_ARITHMETIC = 0 / 0 -local LUA_NAN_CANONICAL = 0 / 0 -local LUA_NAN_DEFAULT = 0 / 0 +local LUA_NAN_ARITHMETIC = -(0 / 0) +local LUA_NAN_CANONICAL = -(0 / 0) +local LUA_NAN_DEFAULT = -(0 / 0) local LUA_INFINITY = math.huge local function is_number_equality(lhs, rhs)