1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00
This commit is contained in:
John J. Aylward 2017-05-16 19:42:46 -04:00
parent c945b53308
commit 49d47e3ff2

View file

@ -1001,7 +1001,8 @@ public class JSONObjectTest {
assertTrue("expected an exeption", false); assertTrue("expected an exeption", false);
} catch (JSONException ignored) {} } catch (JSONException ignored) {}
obj = jsonObject.optBigInteger("bigDec", BigInteger.ONE); 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. * JSONObject.numberToString() works correctly, nothing to change.