Skip to content

Commit

Permalink
adds comment on test case to document why it was added.
Browse files Browse the repository at this point in the history
  • Loading branch information
John J. Aylward committed Jun 25, 2020
1 parent ba6c408 commit 4542546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/org/json/junit/JSONObjectTest.java
Expand Up @@ -3081,6 +3081,10 @@ public void testWierdListBean() {
assertNotNull(jo.get("ALL"));
}

/**
* Sample test case from https://github.com/stleary/JSON-java/issues/531
* which verifies that no regression in double/BigDeDecimal support is present.
*/
public void testObjectToBigDecimal() {
double value = 1412078745.01074;
Reader reader = new StringReader("[{\"value\": " + value + "}]");
Expand Down

0 comments on commit 4542546

Please sign in to comment.