mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Adjustments to tests for https://github.com/stleary/JSON-java/pull/337/
This commit is contained in:
parent
c945b53308
commit
49d47e3ff2
1 changed files with 2 additions and 1 deletions
|
@ -1001,7 +1001,8 @@ public class JSONObjectTest {
|
|||
assertTrue("expected an exeption", false);
|
||||
} catch (JSONException ignored) {}
|
||||
obj = jsonObject.optBigInteger("bigDec", BigInteger.ONE);
|
||||
assertTrue("expected BigInteger", obj.equals(BigInteger.ONE));
|
||||
assertTrue("expected BigInteger", obj instanceof BigInteger);
|
||||
assertEquals(bigDecimal.toBigInteger(), obj);
|
||||
|
||||
/**
|
||||
* JSONObject.numberToString() works correctly, nothing to change.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue