mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
改进Calculator.conversion,兼容乘法符号省略写法
This commit is contained in:
13
hutool-json/src/test/java/cn/hutool/json/Issue2953Test.java
Executable file
13
hutool-json/src/test/java/cn/hutool/json/Issue2953Test.java
Executable file
@@ -0,0 +1,13 @@
|
||||
package cn.hutool.json;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Issue2953Test {
|
||||
@Test
|
||||
public void parseObjWithBigNumberTest() {
|
||||
final String a = "{\"a\": 114793903847679990000000000000000000000}";
|
||||
final JSONObject jsonObject = JSONUtil.parseObj(a, JSONConfig.create());
|
||||
Assert.assertEquals("{\"a\":\"114793903847679990000000000000000000000\"}", jsonObject.toString());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user