diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-05 10:14:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 10:14:10 +0100 |
commit | a0c87d4c114002ead8362ef1fa3a647282a725de (patch) | |
tree | 0fa44961bd785581e4fadff01a695ec260fdd20f /tests | |
parent | 9fd095011ed27c7f6bd7f20cf6f18025cb8b1971 (diff) | |
parent | 1305ff92f79f3ae4d84e8a92f5caedda94e076cb (diff) |
Merge pull request #57620 from Haydoggo/expression-exp-fix
Fix Expression's parsing of positive exponent literals
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/math/test_expression.h | 2 |
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( |