From f2397809a84c2bf0d41e6cb2092fa8f3c5a17850 Mon Sep 17 00:00:00 2001 From: reduz Date: Wed, 4 Nov 2020 23:01:55 -0300 Subject: Refactored Variant Operators. -Using classes to call and a table -For typed code (GDS or GDNative), can obtain functions to call prevalidated or ptr. --- tests/test_expression.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_expression.h') diff --git a/tests/test_expression.h b/tests/test_expression.h index a3d4877d52..c9cb0158f3 100644 --- a/tests/test_expression.h +++ b/tests/test_expression.h @@ -381,7 +381,7 @@ TEST_CASE("[Expression] Unusual expressions") { ERR_PRINT_OFF; CHECK_MESSAGE( - expression.parse("$1.00 + €5") == OK, + expression.parse("$1.00 + ???5") == OK, "The expression should parse successfully."); CHECK_MESSAGE( int(expression.execute()) == 0, @@ -410,8 +410,8 @@ TEST_CASE("[Expression] Unusual expressions") { "The expression should parse successfully."); ERR_PRINT_OFF; CHECK_MESSAGE( - Math::is_zero_approx(float(expression.execute())), - "`-25.4 / 0` should return 0."); + Math::is_inf(float(expression.execute())), + "`-25.4 / 0` should return inf."); ERR_PRINT_ON; CHECK_MESSAGE( -- cgit v1.2.3