Skip to content

Commit 59fb67e

Browse files
committed
Update SpEL test to reflect native float support
Issue: SPR-9486
1 parent 37babc5 commit 59fb67e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-expression/src/test/java/org/springframework/expression/spel/standard/SpelParserTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ public void numerics() {
382382

383383
checkNumberError("3.4L", SpelMessage.REAL_CANNOT_BE_LONG);
384384

385-
// Number is parsed as a float, but immediately promoted to a double
386-
checkNumber("3.5f", 3.5d, Double.class);
385+
checkNumber("3.5f", 3.5f, Float.class);
387386

388387
checkNumber("1.2e3", 1.2e3d, Double.class);
389388
checkNumber("1.2e+3", 1.2e3d, Double.class);

0 commit comments

Comments
 (0)