Home
last modified time | relevance | path

Searched refs:minusOne (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerTest.java27 BigInteger minusOne = new BigInteger("-1", 10); field in BigIntegerTest
221 assertTrue("0=-1", !zero.equals(minusOne)); in test_equalsLjava_lang_Object()
222 assertTrue("1=-1", !one.equals(minusOne)); in test_equalsLjava_lang_Object()
277 assertTrue("0+(-1)", zero.add(minusOne).equals(minusOne)); in test_addLjava_math_BigInteger()
278 assertTrue("(-1)+0", minusOne.add(zero).equals(minusOne)); in test_addLjava_math_BigInteger()
279 assertTrue("(-1)+(-1)", minusOne.add(minusOne).equals(minusTwo)); in test_addLjava_math_BigInteger()
280 assertTrue("1+(-1)", one.add(minusOne).equals(zero)); in test_addLjava_math_BigInteger()
281 assertTrue("(-1)+1", minusOne.add(one).equals(zero)); in test_addLjava_math_BigInteger()
314 assertTrue("1.neg", one.negate().equals(minusOne)); in test_negate()
316 assertTrue("-1.neg", minusOne.negate().equals(one)); in test_negate()
[all …]
DOldBigIntegerTest.java25 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()