summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHayden <Haydenleete@gmail.com>2022-02-05 00:14:49 +1300
committerHayden <Haydenleete@gmail.com>2022-02-05 16:34:26 +1300
commit1305ff92f79f3ae4d84e8a92f5caedda94e076cb (patch)
treeeba982c8f2f49e16b2b9f000c6c33a36883bf2a4 /tests
parent29c4644890c82f38f54553fa127a9661e7a0c75a (diff)
Make parser treat all exponent literals as float
Diffstat (limited to 'tests')
-rw-r--r--tests/core/math/test_expression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/math/test_expression.h b/tests/core/math/test_expression.h
index 5a894b20f3..6e3be541b0 100644
--- a/tests/core/math/test_expression.h
+++ b/tests/core/math/test_expression.h
@@ -137,7 +137,7 @@ TEST_CASE("[Expression] Scientific notation") {
expression.parse("2e5") == OK,
"The expression should parse successfully.");
CHECK_MESSAGE(
- Math::is_equal_approx(double(expression.execute()), 25),
+ Math::is_equal_approx(double(expression.execute()), 2e5),
"The expression should return the expected result.");
CHECK_MESSAGE(