mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix test
This commit is contained in:
parent
b806d7a4ab
commit
7edd9144fc
@ -730,8 +730,13 @@ public class NumberUtilTest {
|
||||
@Test
|
||||
@EnabledForJreRange(max = JRE.JAVA_8)
|
||||
void numberFormatTest() {
|
||||
// JDK8下,NaN解析报错,JDK9+中返回0
|
||||
Assertions.assertThrows(ParseException.class, ()->{
|
||||
NumberFormat.getInstance().parse("NaN");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
void name() {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user