Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
add testcase for issue #2130
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Nov 18, 2018
1 parent 38f46a3 commit 104dfe0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/com/alibaba/json/bvt/issue_2100/Issue2130.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.alibaba.json.bvt.issue_2100;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import junit.framework.TestCase;

public class Issue2130 extends TestCase {
public void test_for_issue() throws Exception {
String str = "{\"score\":0.000099369485}";
JSONObject object = JSON.parseObject(str);
assertEquals("{\"score\":0.000099369485}", object.toJSONString());
}
}

0 comments on commit 104dfe0

Please sign in to comment.