Code example for BigInteger

Methods: subtract

0
		Object r = array.get(0);
		assertEquals(v, r);
	} 
 
	public void testMinBig() { 
		BigInteger v = BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE);
		String s = "[" + v + "]";
		JSONArray array = (JSONArray) JSONValue.parse(s);
		Object r = array.get(0);
		assertEquals(v, r);
	} 
 
	public void testMaxBig() { 
		BigInteger v = BigInteger.valueOf(Long.MAX_VALUE).add(BigInteger.ONE);
		String s = "[" + v + "]";
		JSONArray array = (JSONArray) JSONValue.parse(s);
		Object r = array.get(0);
		assertEquals(v, r);
	} 
}