1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Make parser treat all exponent literals as float

This commit is contained in:
Hayden
2022-02-05 00:14:49 +13:00
parent 29c4644890
commit 1305ff92f7
2 changed files with 2 additions and 4 deletions

View File

@@ -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(