mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
728957baa3
commit
8eb7352d14
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.of());
|
||||||
|
Assert.assertEquals("{\"a\":\"114793903847679990000000000000000000000\"}", jsonObject.toString());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user