We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c945b53 commit 49d47e3Copy full SHA for 49d47e3
src/test/java/org/json/junit/JSONObjectTest.java
@@ -1001,7 +1001,8 @@ public void bigNumberOperations() {
1001
assertTrue("expected an exeption", false);
1002
} catch (JSONException ignored) {}
1003
obj = jsonObject.optBigInteger("bigDec", BigInteger.ONE);
1004
- assertTrue("expected BigInteger", obj.equals(BigInteger.ONE));
+ assertTrue("expected BigInteger", obj instanceof BigInteger);
1005
+ assertEquals(bigDecimal.toBigInteger(), obj);
1006
1007
/**
1008
* JSONObject.numberToString() works correctly, nothing to change.
0 commit comments