Searched refs:minusOne (Results 1 – 2 of 2) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 27 BigInteger minusOne = new BigInteger("-1", 10); field in BigIntegerTest 216 assertTrue("0=-1", !zero.equals(minusOne)); in test_equalsLjava_lang_Object() 217 assertTrue("1=-1", !one.equals(minusOne)); in test_equalsLjava_lang_Object() 272 assertTrue("0+(-1)", zero.add(minusOne).equals(minusOne)); in test_addLjava_math_BigInteger() 273 assertTrue("(-1)+0", minusOne.add(zero).equals(minusOne)); in test_addLjava_math_BigInteger() 274 assertTrue("(-1)+(-1)", minusOne.add(minusOne).equals(minusTwo)); in test_addLjava_math_BigInteger() 275 assertTrue("1+(-1)", one.add(minusOne).equals(zero)); in test_addLjava_math_BigInteger() 276 assertTrue("(-1)+1", minusOne.add(one).equals(zero)); in test_addLjava_math_BigInteger() 309 assertTrue("1.neg", one.negate().equals(minusOne)); in test_negate() 311 assertTrue("-1.neg", minusOne.negate().equals(one)); in test_negate() [all …]
|
D | OldBigIntegerTest.java | 25 BigInteger minusOne = new BigInteger("-1", 10); field in OldBigIntegerTest 300 assertTrue("0+(-1)", BigInteger.ZERO.add(minusOne).equals(minusOne)); in test_addLjava_math_BigInteger() 301 assertTrue("(-1)+0", minusOne.add(BigInteger.ZERO).equals(minusOne)); in test_addLjava_math_BigInteger() 302 assertTrue("(-1)+(-1)", minusOne.add(minusOne).equals(new BigInteger("-2", 10))); in test_addLjava_math_BigInteger() 303 assertTrue("1+(-1)", BigInteger.ONE.add(minusOne).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger() 304 assertTrue("(-1)+1", minusOne.add(BigInteger.ONE).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger()
|