/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | StrippingZerosTest.java | 55 {new BigDecimal("0e2"), BigDecimal.ZERO}, in testStrippingZeros() 56 {new BigDecimal("0e-2"), BigDecimal.ZERO}, in testStrippingZeros() 57 {new BigDecimal("0e42"), BigDecimal.ZERO}, in testStrippingZeros() 58 {new BigDecimal("+0e42"), BigDecimal.ZERO}, in testStrippingZeros() 59 {new BigDecimal("-0e42"), BigDecimal.ZERO}, in testStrippingZeros() 60 {new BigDecimal("0e-42"), BigDecimal.ZERO}, in testStrippingZeros() 61 {new BigDecimal("+0e-42"), BigDecimal.ZERO}, in testStrippingZeros() 62 {new BigDecimal("-0e-42"), BigDecimal.ZERO}, in testStrippingZeros() 63 {new BigDecimal("0e-2"), BigDecimal.ZERO}, in testStrippingZeros() 64 {new BigDecimal("0e100"), BigDecimal.ZERO}, in testStrippingZeros() [all …]
|
D | CompareToTests.java | 48 {valueOf(0), valueOf(0), ZERO}, in compareToTests() 52 {valueOf(10), valueOf(10), ZERO}, in compareToTests() 62 {valueOf(Long.MAX_VALUE), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 72 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 80 {valueOf(Long.MIN_VALUE), valueOf(Long.MIN_VALUE), ZERO}, in compareToTests()
|
D | ZeroScalingTests.java | 48 zeros[i] = new BigDecimal(BigInteger.ZERO, i-10); 50 zeros[21] = new BigDecimal(BigInteger.ZERO, Integer.MIN_VALUE); 51 zeros[22] = new BigDecimal(BigInteger.ZERO, Integer.MAX_VALUE); 71 BigDecimal expected = new BigDecimal(BigInteger.ZERO, in addTests() 143 BigDecimal expected = new BigDecimal(BigInteger.ZERO, in subtractTests() 228 BigDecimal expected = new BigDecimal(BigInteger.ZERO, in multiplyTests() 266 BigDecimal expected = new BigDecimal(BigInteger.ZERO, in divideTests()
|
D | EqualsTests.java | 45 {ZERO, ZERO}, in testEquals()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidEnumTest.java | 26 ZERO, ONE, TWO, THREE, FOUR {boolean isFour() { in isFour() enumConstant 40 assertTrue(MyEnum.ZERO.compareTo(MyEnum.ONE) < 0); in testEnum() 41 assertEquals(MyEnum.ZERO, MyEnum.ZERO); in testEnum() 53 e = MyEnum.ZERO; in testEnum() 56 case ZERO: in testEnum()
|
D | ProcessBuilderTest.java | 72 checkProcessExecution(pb, ResultCodes.ZERO, in assertRedirectErrorStream() 139 checkProcessExecution(pb, ResultCodes.ZERO, /* processInput */ "", in testRedirectFile_input() 148 checkProcessExecution(pb, ResultCodes.ZERO, processInput, in testRedirectFile_output() 180 checkProcessExecution(pb, ResultCodes.ZERO, testString, testString, ""); in testRedirectPipe_inputAndOutput() 186 checkProcessExecution(pb, ResultCodes.ZERO, testString, testString, ""); in testRedirectPipe_inputAndOutput() 193 checkProcessExecution(pb, ResultCodes.ZERO, "", testString + "\n", ""); in testRedirectPipe_inputAndOutput() 242 checkProcessExecution(pb, ResultCodes.ZERO, "", "android\n", ""); in testEnvironment() 455 ZERO { @Override void assertMatches(int actualResultCode) { in assertMatches() enumConstant
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestPeriod.java | 85 assertSame(Period.ZERO, Period.ZERO); in factory_zeroSingleton() 86 assertSame(Period.ofYears(0), Period.ZERO); in factory_zeroSingleton() 87 assertSame(Period.ofMonths(0), Period.ZERO); in factory_zeroSingleton() 88 assertSame(Period.ofDays(0), Period.ZERO); in factory_zeroSingleton() 89 assertSame(Period.of(0, 0, 0), Period.ZERO); in factory_zeroSingleton()
|
D | TestDuration.java | 85 assertSame(t.plus(Duration.ZERO), t); in plus_zeroReturnsThis() 91 assertSame(t.plus(Duration.ofSeconds(1)), Duration.ZERO); in plus_zeroSingleton() 103 assertSame(t.plusSeconds(1), Duration.ZERO); in plusSeconds_zeroSingleton() 115 assertSame(t.plusMillis(998), Duration.ZERO); in plusMillis_zeroSingleton() 127 assertSame(t.plusNanos(998000000), Duration.ZERO); in plusNanos_zeroSingleton() 133 assertSame(t.minus(Duration.ZERO), t); in minus_zeroReturnsThis() 139 assertSame(t.minus(Duration.ofSeconds(1)), Duration.ZERO); in minus_zeroSingleton() 151 assertSame(t.minusSeconds(1), Duration.ZERO); in minusSeconds_zeroSingleton() 163 assertSame(t.minusMillis(1002), Duration.ZERO); in minusMillis_zeroSingleton() 175 assertSame(t.minusNanos(1002000000), Duration.ZERO); in minusNanos_zeroSingleton()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 52 assertTrue("Random number is negative", bi.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorILjava_util_Random() 57 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 74 assertTrue(bi1 + " is negative", bi1.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorIILjava_util_Random() 76 assertTrue(bi2 + " is negative", bi2.compareTo(BigInteger.ZERO) >= 0); in test_ConstructorIILjava_util_Random() 296 assertTrue("0+0", BigInteger.ZERO.add(BigInteger.ZERO).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger() 297 assertTrue("0+1", BigInteger.ZERO.add(BigInteger.ONE).equals(BigInteger.ONE)); in test_addLjava_math_BigInteger() 298 assertTrue("1+0", BigInteger.ONE.add(BigInteger.ZERO).equals(BigInteger.ONE)); in test_addLjava_math_BigInteger() 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() 303 assertTrue("1+(-1)", BigInteger.ONE.add(minusOne).equals(BigInteger.ZERO)); in test_addLjava_math_BigInteger() [all …]
|
D | BigIntegerCompareTest.java | 191 BigInteger bNumber = BigInteger.ZERO; in testCompareToPosZero() 202 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroPos() 215 BigInteger bNumber = BigInteger.ZERO; in testCompareToNegZero() 226 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroNeg() 236 BigInteger aNumber = BigInteger.ZERO; in testCompareToZeroZero() 237 BigInteger bNumber = BigInteger.ZERO; in testCompareToZeroZero() 365 BigInteger bNumber = BigInteger.ZERO; in testMaxNegZero() 447 BigInteger bNumber = BigInteger.ZERO; in testMinPosZero() 496 BigInteger aNumber = BigInteger.ZERO; in testNegateZero() 530 BigInteger aNumber = BigInteger.ZERO; in testSignumZero()
|
D | BigIntegerTest.java | 95 assertTrue("Not zero", new BigInteger(0, rand).equals(BigInteger.ZERO)); in test_ConstructorILjava_util_Random() 105 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_Constructor$B() 119 assertTrue("Incorrect value for pos number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 122 assertTrue("Incorrect value for neg number", bi.equals(BigInteger.ZERO in test_ConstructorI$B() 379 .compareTo(BigInteger.ZERO) >= 0); in test_modInverseLjava_math_BigInteger() 400 .compareTo(BigInteger.ZERO) >= 0); in test_modInverseLjava_math_BigInteger() 416 BigInteger.ZERO)); in test_shiftRightI() 418 BigInteger.ZERO)); in test_shiftRightI() 420 BigInteger.ZERO)); in test_shiftRightI() 422 BigInteger.ZERO)); in test_shiftRightI() [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EmptyNavigableSet.java | 235 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, null); in testSubSet() 256 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, obj2); in testSubSet() 267 navigableSet.subSet(BigInteger.ZERO, false, BigInteger.ZERO, false); in testSubSet() 268 navigableSet.subSet(BigInteger.ZERO, false, BigInteger.ZERO, true); in testSubSet() 269 navigableSet.subSet(BigInteger.ZERO, true, BigInteger.ZERO, false); in testSubSet() 270 navigableSet.subSet(BigInteger.ZERO, true, BigInteger.ZERO, true); in testSubSet() 272 Object first = isDescending(navigableSet) ? BigInteger.TEN : BigInteger.ZERO; in testSubSet() 273 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubSet() 285 Object first = isDescending(navigableSet) ? BigInteger.TEN : BigInteger.ZERO; in testSubSetRanges() 286 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubSetRanges() [all …]
|
D | EmptyNavigableMap.java | 216 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, null); in testSubMap() 237 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, obj2); in testSubMap() 248 navigableMap.subMap(BigInteger.ZERO, false, BigInteger.ZERO, false); in testSubMap() 249 navigableMap.subMap(BigInteger.ZERO, false, BigInteger.ZERO, true); in testSubMap() 250 navigableMap.subMap(BigInteger.ZERO, true, BigInteger.ZERO, false); in testSubMap() 251 navigableMap.subMap(BigInteger.ZERO, true, BigInteger.ZERO, true); in testSubMap() 253 Object first = isDescending(navigableMap) ? BigInteger.TEN : BigInteger.ZERO; in testSubMap() 254 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubMap() 265 Object first = isDescending(navigableMap) ? BigInteger.TEN : BigInteger.ZERO; in testSubMapRanges() 266 Object last = (BigInteger.ZERO == first) ? BigInteger.TEN : BigInteger.ZERO; in testSubMapRanges() [all …]
|
D | ViewSynch.java | 41 static final Integer ZERO = new Integer(0); field in ViewSynch 45 static Map m2 = m.tailMap(ZERO); 56 m.remove(ZERO); in main() 57 m.put(ZERO, INT_ZERO); in main()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | CompareToTests.java | 51 {valueOf(0), valueOf(0), ZERO}, in compareToTests() 55 {valueOf(10), valueOf(10), ZERO}, in compareToTests() 58 {TWO_POW_127, TWO_POW_127, ZERO}, in compareToTests() 74 {valueOf(Long.MAX_VALUE), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 84 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests() 92 {valueOf(Long.MIN_VALUE), valueOf(Long.MIN_VALUE), ZERO}, in compareToTests()
|
D | BigIntegerTest.java | 170 Assert.assertEquals(bi.compareTo(BigInteger.ZERO), 0, in constructor() 176 Assert.assertEquals(bi.compareTo(BigInteger.ZERO), 0, in constructor() 184 Assert.assertEquals(bi.compareTo(BigInteger.ZERO), 0, in constructor() 259 checkResult(BigInteger.ZERO, BigInteger.ZERO.sqrt(), "sqrt(0) != BigInteger.ZERO"); in squareRootSmall() 328 checkResult(BigInteger.ZERO, actual[1], "sqrtAndRemainder()[1]"); in squareRootAndRemainder() 352 while(x.compareTo(BigInteger.ZERO) != 1) in arithmetic() 357 if (y.equals(BigInteger.ZERO)) in arithmetic() 366 Assert.assertEquals(baz, BigInteger.ZERO); in arithmetic() 371 while(x.compareTo(BigInteger.ZERO) != 1) in arithmetic() 376 if (y.equals(BigInteger.ZERO)) in arithmetic() [all …]
|
D | TestValueExact.java | 44 BigInteger.ZERO, in testLongValueExact() 72 BigInteger.ZERO, in testIntValueExact() 102 BigInteger.ZERO, in testShortValueExact()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | ECPointTest.java | 47 new ECPoint(BigInteger.ZERO, BigInteger.ZERO); in testECPoint01() 64 new ECPoint(null, BigInteger.ZERO); in testECPoint02() 72 new ECPoint(BigInteger.ZERO, null); in testECPoint02() 184 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02() 189 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02()
|
D | RSAMultiPrimePrivateCrtKeySpecTest.java | 597 opi1[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, in testIsStatePreserved1() 598 BigInteger.ZERO, in testIsStatePreserved1() 599 BigInteger.ZERO); in testIsStatePreserved1() 630 ret[2] = new RSAOtherPrimeInfo(BigInteger.ZERO, in testIsStatePreserved2() 631 BigInteger.ZERO, in testIsStatePreserved2() 632 BigInteger.ZERO); in testIsStatePreserved2()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DHPrivateKeySpecTest.java | 42 BigInteger[] xs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec()
|
D | DHPublicKeySpecTest.java | 42 BigInteger[] ys = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHPrivateKeySpec()
|
D | DHParameterSpecTest.java | 44 BigInteger[] ps = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHParameterSpec() 46 BigInteger[] gs = {new BigInteger("-1000000000000"), BigInteger.ZERO, in testDHParameterSpec()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKInstantPrinterParser.java | 244 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsMinusOne() 272 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsNine() 297 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_endOfDay() 309 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_leapSecond()
|
/libcore/luni/src/test/java/libcore/java/time/ |
D | DurationTest.java | 49 assertSame(Instant.EPOCH, Duration.ZERO.addTo(Instant.EPOCH)); in test_addTo() 63 assertSame(Instant.EPOCH, Duration.ZERO.subtractFrom(Instant.EPOCH)); in test_subtractFrom() 142 assertSame(temporal, Duration.ZERO.addTo(temporal)); in test_addTo_subtractFrom_unsupported() 143 assertSame(temporal, Duration.ZERO.subtractFrom(temporal)); in test_addTo_subtractFrom_unsupported()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ComparatorTest.java | 28 private static final Item ZERO = new Item(0); field in ComparatorTest 39 private final List<Item> orderedItems = listOf(ZERO, ONE, TWO, THREE, FOUR); 40 private final List<Item> nullsFirstItems = listOf(null, ZERO, ONE, TWO, THREE, FOUR); 41 private final List<Item> nullsLastItems = listOf(ZERO, ONE, TWO, THREE, FOUR, null);
|