Skip to content

Commit 3477372

Browse files
committed
Update SpEL test to reflect native float support
Issue: SPR-9486 Backport-Commit: 59fb67e
1 parent a94677e commit 3477372

File tree

1 file changed

+2
-3
lines changed
  • org.springframework.expression/src/test/java/org/springframework/expression/spel/standard

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,8 @@ public void testNumerics() {
332332

333333
checkNumberError("3.4L",SpelMessage.REAL_CANNOT_BE_LONG);
334334

335-
// Number is parsed as a float, but immediately promoted to a double
336-
checkNumber("3.5f",3.5d,Double.class);
337-
335+
checkNumber("3.5f", 3.5f, Float.class);
336+
338337
checkNumber("1.2e3", 1.2e3d, Double.class);
339338
checkNumber("1.2e+3", 1.2e3d, Double.class);
340339
checkNumber("1.2e-3", 1.2e-3d, Double.class);

0 commit comments

Comments
 (0)