mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -159,6 +159,7 @@ public class JSONUtilTest {
|
|||||||
public void doubleTest(){
|
public void doubleTest(){
|
||||||
String json = "{\"test\": 12.00}";
|
String json = "{\"test\": 12.00}";
|
||||||
final JSONObject jsonObject = JSONUtil.parseObj(json);
|
final JSONObject jsonObject = JSONUtil.parseObj(json);
|
||||||
|
//noinspection BigDecimalMethodWithoutRoundingCalled
|
||||||
Assert.assertEquals("12.00", jsonObject.getBigDecimal("test").setScale(2).toString());
|
Assert.assertEquals("12.00", jsonObject.getBigDecimal("test").setScale(2).toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user