This commit is contained in:
Looly 2023-04-27 18:37:34 +08:00
parent b806d7a4ab
commit 7edd9144fc

View File

@ -730,8 +730,13 @@ public class NumberUtilTest {
@Test @Test
@EnabledForJreRange(max = JRE.JAVA_8) @EnabledForJreRange(max = JRE.JAVA_8)
void numberFormatTest() { void numberFormatTest() {
// JDK8下NaN解析报错JDK9+中返回0
Assertions.assertThrows(ParseException.class, ()->{ Assertions.assertThrows(ParseException.class, ()->{
NumberFormat.getInstance().parse("NaN"); NumberFormat.getInstance().parse("NaN");
}); });
} }
@Test
void name() {
}
} }