/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerTest.java | 94 !bi.equals(bi2)); in test_ConstructorILjava_util_Random() 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() 109 assertTrue("Incorrect value for neg number", bi.equals(minusTwo)); 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() 126 assertTrue("Incorrect value for zero", bi.equals(zero)); in test_ConstructorI$B() 212 assertTrue("0=0", zero.equals(BigInteger.valueOf(0))); in test_equalsLjava_lang_Object() 213 assertTrue("-123=-123", BigInteger.valueOf(-123).equals( in test_equalsLjava_lang_Object() 215 assertTrue("0=1", !zero.equals(one)); in test_equalsLjava_lang_Object() [all …]
|
D | BigDecimalTest.java | 41 .unscaledValue().equals(value) in test_ConstructorLjava_math_BigInteger() 51 .unscaledValue().equals(value2) in test_ConstructorLjava_math_BigIntegerI() 54 .toString().equals("123345.60000")); in test_ConstructorLjava_math_BigIntegerI() 64 big.toString().equals("1230000")); in test_ConstructorD() 96 .toString().equals("345.23499600293850") in test_ConstructorLjava_lang_String() 100 .toString().equals("-12345") in test_ConstructorLjava_lang_String() 104 .toString().equals("123") in test_ConstructorLjava_lang_String() 174 .equals("1234")); in test_abs() 178 .toString().equals("23.45")); in test_abs() 189 .toString().equals("3872691") in test_addLjava_math_BigDecimal() [all …]
|
D | BigIntegerToStringTest.java | 40 assertTrue(result.equals(value)); in testRadixOutOfRange() 51 assertTrue(result.equals(value)); in testRadix2Neg() 62 assertTrue(result.equals(value)); in testRadix2Pos() 73 assertTrue(result.equals(value)); in testRadix10Neg() 84 assertTrue(result.equals(value)); in testRadix10Pos() 95 assertTrue(result.equals(value)); in testRadix16Neg() 106 assertTrue(result.equals(value)); in testRadix16Pos() 117 assertTrue(result.equals(value)); in testRadix24Neg() 128 assertTrue(result.equals(value)); in testRadix24Pos() 139 assertTrue(result.equals(value)); in testRadix36Neg() [all …]
|
D | BigIntegerXorTest.java | 41 assertTrue(res.equals(result.toString())); in testZeroPos() 54 assertTrue(res.equals(result.toString())); in testZeroNeg() 67 assertTrue(res.equals(result.toString())); in testPosZero() 80 assertTrue(res.equals(result.toString())); in testNegPos() 93 assertTrue(res.equals(result.toString())); in testZeroZero() 106 assertTrue(res.equals(result.toString())); in testZeroOne() 119 assertTrue(res.equals(result.toString())); in testOneOne() 132 assertTrue(res.equals(result.toString())); in testPosPosSameLength() 145 assertTrue(res.equals(result.toString())); in testPosPosFirstLonger() 158 assertTrue(res.equals(result.toString())); in testPosPosFirstShorter() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 29 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone() 119 assertTrue("Cloned collators not equal", c.equals(c2)); in test_equalsLjava_lang_Object() 121 assertTrue("Collators with different strengths equal", !c.equals(c2)); in test_equalsLjava_lang_Object() 128 assertTrue("a) Failed on primary difference", !c.equals("E", "F")); in test_equalsLjava_lang_StringLjava_lang_String() 130 .equals("e", "\u00e9")); in test_equalsLjava_lang_StringLjava_lang_String() 131 assertTrue("a) Failed on tertiary difference", !c.equals("e", "E")); in test_equalsLjava_lang_StringLjava_lang_String() 132 assertTrue("a) Failed on identical", !c.equals("\u0001", "\u0002")); in test_equalsLjava_lang_StringLjava_lang_String() 133 assertTrue("a) Failed on equivalence", c.equals("e", "e")); in test_equalsLjava_lang_StringLjava_lang_String() 136 assertTrue("b) Failed on primary difference", !c.equals("E", "F")); in test_equalsLjava_lang_StringLjava_lang_String() 138 .equals("e", "\u00e9")); in test_equalsLjava_lang_StringLjava_lang_String() [all …]
|
D | ChoiceFormatTest.java | 53 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 56 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 59 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 62 formattedString.equals("Tiny Apple")); in test_Constructor$D$Ljava_lang_String() 65 formattedString.equals("Small Apple")); in test_Constructor$D$Ljava_lang_String() 68 formattedString.equals("Small Apple")); in test_Constructor$D$Ljava_lang_String() 71 formattedString.equals("Medium Apple")); in test_Constructor$D$Ljava_lang_String() 74 formattedString.equals("Large Apple")); in test_Constructor$D$Ljava_lang_String() 77 formattedString.equals("Huge Apple")); in test_Constructor$D$Ljava_lang_String() 80 formattedString.equals("Huge Apple")); in test_Constructor$D$Ljava_lang_String() [all …]
|
D | DateFormatTest.java | 39 assertTrue("Clone not equal", format.equals(clone)); in test_clone() 41 assertTrue("Clone shares NumberFormat", !format.equals(clone)); in test_clone() 59 if (locale.equals(Locale.ENGLISH)) in test_getAvailableLocales() 61 if (locale.equals(Locale.GERMAN)) in test_getAvailableLocales() 83 assertTrue("Wrong default", f2.equals(DateFormat.getDateInstance( in test_getDateInstance() 100 assertTrue("Wrong default1", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 102 assertTrue("Wrong symbols1", f2.getDateFormatSymbols().equals( in test_getDateInstanceI() 109 assertTrue("Wrong default2", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() 111 assertTrue("Wrong symbols2", f2.getDateFormatSymbols().equals( in test_getDateInstanceI() 118 assertTrue("Wrong default3", f2.equals(DateFormat.getDateInstance( in test_getDateInstanceI() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | JUnitTestCaseAdapter.java | 249 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEqualsIgnoreCase() 250 if(equals) { in assertEqualsIgnoreCase() 256 while(actualIter.hasNext() && equals) { in assertEqualsIgnoreCase() 259 equals = false; in assertEqualsIgnoreCase() 260 while(expectedIter.hasNext() && !equals) { in assertEqualsIgnoreCase() 263 equals = true; in assertEqualsIgnoreCase() 269 assertTrue(assertID,equals); in assertEqualsIgnoreCase() 277 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEqualsIgnoreCase() 278 if(equals) { in assertEqualsIgnoreCase() 313 boolean equals = (expected != null && actual != null && size == actual.size()); in assertEquals() [all …]
|
D | DOMTestCase.java | 354 if ("text/html".equals(contentType)) { in assertEqualsAutoCase() 358 if ("attribute".equals(context)) { in assertEqualsAutoCase() 403 if ("text/html".equals(contentType)) { in assertEqualAutoCase() 404 if ("attribute".equals(context)) { in assertEqualAutoCase() 434 if ("text/html".equals(contentType)) { in assertEqualsAutoCase() 435 if ("attribute".equals(context)) { in assertEqualsAutoCase() 581 if ("text/html".equals(contentType)) { in assertNotEqualsAutoCase() 582 if ("attribute".equals(context)) { in assertNotEqualsAutoCase() 831 if ("text/html".equals(getContentType())) { in equalsAutoCase() 832 if ("attribute".equals(context)) { in equalsAutoCase() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 79 boolean equals; in test_writeObject_EventObject() 80 equals = true; in test_writeObject_EventObject() 83 assertTrue(MSG_TEST_FAILED + objToSave, equals); in test_writeObject_EventObject() 111 boolean equals; in test_writeObject_Collections_EmptySet() 112 equals = objToSave.equals(objLoaded); in test_writeObject_Collections_EmptySet() 113 if (equals) in test_writeObject_Collections_EmptySet() 114 equals = ((Set) objLoaded).size() == 0; in test_writeObject_Collections_EmptySet() 115 assertTrue(MSG_TEST_FAILED + objToSave, equals); in test_writeObject_Collections_EmptySet() 144 boolean equals; in test_writeObject_Collections_EmptyMap() 145 equals = objToSave.equals(objLoaded); in test_writeObject_Collections_EmptyMap() [all …]
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimespecTest.java | 102 assertTrue(allZero1.equals(allZero2)); in testEquals() 103 assertTrue(val1.equals(val2)); in testEquals() 104 assertTrue(secZero1.equals(secZero2)); in testEquals() 105 assertTrue(nsecZero1.equals(nsecZero2)); in testEquals() 108 assertFalse(allZero1.equals(val1)); in testEquals() 109 assertFalse(allZero1.equals(secZero1)); in testEquals() 110 assertFalse(allZero1.equals(nsecZero1)); in testEquals() 112 assertFalse(val1.equals(secZero1)); in testEquals() 113 assertFalse(val1.equals(nsecZero1)); in testEquals() 114 assertFalse(val1.equals(allZero1)); in testEquals() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidFloatDoubleTest.java | 31 assertFalse(f.equals(d)); in testFloatDouble() 32 assertFalse(d.equals(f)); in testFloatDouble() 33 assertFalse(f.equals(o)); in testFloatDouble() 34 assertFalse(d.equals(o)); in testFloatDouble() 35 assertFalse(f.equals(null)); in testFloatDouble() 36 assertFalse(d.equals(null)); in testFloatDouble() 69 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nz))); in testFloat() 71 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nzero))); in testFloat() 73 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pz))); in testFloat() 75 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pzero))); in testFloat() [all …]
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalTest.java | 37 big.toString().equals("1230000")); in test_ConstructorD() 40 big.toString().equals("123.375") ); in test_ConstructorD() 43 big.toString().equals("1.16415321826934814453125E-10") ); in test_ConstructorD() 46 big.toString().equals("0.000014372169971466064453125") ); in test_ConstructorD() 49 big.toString().equals("-0.000014372169971466064453125") ); in test_ConstructorD() 86 setScale2.toString().equals("-1.25300E-12")); in test_setScaleILjava_math_RoundingMode() 93 setScale2.toString().equals("1234.6") && setScale2.scale() == 1); in test_setScaleILjava_math_RoundingMode() 98 setScale2.toString().equals("-1234.5") in test_setScaleILjava_math_RoundingMode() 105 setScale2.toString().equals("-1234.5") in test_setScaleILjava_math_RoundingMode() 111 setScale2.toString().equals("1234.5") && setScale2.scale() == 1); in test_setScaleILjava_math_RoundingMode() [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 32 } else if (internalName.equals("Z")) { in getClass() 34 } else if (internalName.equals("B")) { in getClass() 36 } else if (internalName.equals("S")) { in getClass() 38 } else if (internalName.equals("I")) { in getClass() 40 } else if (internalName.equals("J")) { in getClass() 42 } else if (internalName.equals("F")) { in getClass() 44 } else if (internalName.equals("D")) { in getClass() 46 } else if (internalName.equals("C")) { in getClass() 48 } else if (internalName.equals("V")) { in getClass()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | LocaleTest.java | 40 assertTrue("Failed to create Locale", x.getVariant().equals("")); in test_ConstructorLjava_lang_String() 56 assertTrue("Failed to create Locale", x.getCountry().equals("CV") in test_ConstructorLjava_lang_StringLjava_lang_String() 57 && x.getVariant().equals("")); in test_ConstructorLjava_lang_StringLjava_lang_String() 82 assertTrue("Failed to create Locale", x.getLanguage().equals("xx") in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 83 && (x.getCountry().equals("CV") && x.getVariant().equals("ZZ"))); in test_ConstructorLjava_lang_StringLjava_lang_StringLjava_lang_String() 108 assertTrue("Clone failed", l.clone().equals(l)); in test_clone() 117 assertTrue("Same object returned false", testLocale.equals(testLocale)); in test_equalsLjava_lang_Object() 118 assertTrue("Same values returned false", testLocale.equals(l2)); in test_equalsLjava_lang_Object() 119 assertTrue("Different locales returned true", !testLocale.equals(l)); in test_equalsLjava_lang_Object() 151 testLocale.getCountry().equals("CA")); in test_getCountry() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ListTest.java | 46 .equals(new Integer(counter))); in runTest() 52 .get(50).equals(new Integer(1000))); in runTest() 55 list.get(51).equals(new Integer(50))); in runTest() 58 list.get(49).equals(new Integer(49))); in runTest() 62 .equals(new Integer(2000))); in runTest() 64 list.get(51).equals(new Integer(50))); in runTest() 66 .get(49).equals(new Integer(49))); in runTest() 70 list.get(50).equals(new Integer(50))); in runTest() 73 list.get(51).equals(new Integer(51))); in runTest() 76 list.get(49).equals(new Integer(49))); in runTest() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransitionRule.java | 285 assertEquals(a.equals(a), true); in test_equals_monthDifferent() 286 assertEquals(a.equals(b), false); in test_equals_monthDifferent() 287 assertEquals(b.equals(a), false); in test_equals_monthDifferent() 288 assertEquals(b.equals(b), true); in test_equals_monthDifferent() 299 assertEquals(a.equals(a), true); in test_equals_dayOfMonthDifferent() 300 assertEquals(a.equals(b), false); in test_equals_dayOfMonthDifferent() 301 assertEquals(b.equals(a), false); in test_equals_dayOfMonthDifferent() 302 assertEquals(b.equals(b), true); in test_equals_dayOfMonthDifferent() 313 assertEquals(a.equals(a), true); in test_equals_dayOfWeekDifferent() 314 assertEquals(a.equals(b), false); in test_equals_dayOfWeekDifferent() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMImplementationImpl.java | 63 … return anyVersion || version.equals("1.0") || version.equals("2.0") || version.equals("3.0"); in hasFeature() 65 … return anyVersion || version.equals("1.0") || version.equals("2.0") || version.equals("3.0"); in hasFeature() 67 return anyVersion || version.equals("1.0") || version.equals("1.1"); in hasFeature()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldStreamTokenizerTest.java | 60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1")); in test_basicStringTokenizerMethods() 62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1")); in test_basicStringTokenizerMethods() 64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2")); in test_basicStringTokenizerMethods() 66 Assert.assertTrue(a.toString().equals("Token[omega], line 3")); in test_basicStringTokenizerMethods() 68 Assert.assertTrue(a.toString().equals("Token[EOF], line 3")); in test_basicStringTokenizerMethods() 78 Assert.assertTrue(b.toString().equals("Token[n=-3.8], line 1")); in test_basicStringTokenizerMethods() 80 Assert.assertTrue(b.toString().equals("Token[BLIND mice], line 1")); in test_basicStringTokenizerMethods() 82 Assert.assertTrue(b.toString().equals("Token[EOL], line 2")); in test_basicStringTokenizerMethods() 84 Assert.assertTrue(b.toString().equals("Token[see], line 2")); in test_basicStringTokenizerMethods() 86 Assert.assertTrue(b.toString().equals("Token[the], line 2")); in test_basicStringTokenizerMethods() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKClock_System.java | 162 assertEquals(a.equals(a), true); in test_equals() 163 assertEquals(a.equals(b), true); in test_equals() 164 assertEquals(b.equals(a), true); in test_equals() 165 assertEquals(b.equals(b), true); in test_equals() 169 assertEquals(c.equals(c), true); in test_equals() 170 assertEquals(c.equals(d), true); in test_equals() 171 assertEquals(d.equals(c), true); in test_equals() 172 assertEquals(d.equals(d), true); in test_equals() 174 assertEquals(a.equals(c), false); in test_equals() 175 assertEquals(c.equals(a), false); in test_equals() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKOffsetPrinterParser.java | 245 if (offsetPattern.equals("+HHmm") && noOffset.equals("Z")) { in test_print_pattern_X() 247 } else if (offsetPattern.equals("+HHMM") && noOffset.equals("Z")) { in test_print_pattern_X() 249 } else if (offsetPattern.equals("+HH:MM") && noOffset.equals("Z")) { in test_print_pattern_X() 251 } else if (offsetPattern.equals("+HHMMss") && noOffset.equals("Z")) { in test_print_pattern_X() 253 } else if (offsetPattern.equals("+HH:MM:ss") && noOffset.equals("Z")) { in test_print_pattern_X() 268 if (offsetPattern.equals("+HHmm") && noOffset.equals("Z")) { in test_print_pattern_x() 271 } else if (offsetPattern.equals("+HHMM") && noOffset.equals("Z")) { in test_print_pattern_x() 274 } else if (offsetPattern.equals("+HH:MM") && noOffset.equals("Z")) { in test_print_pattern_x() 277 } else if (offsetPattern.equals("+HHMMss") && noOffset.equals("Z")) { in test_print_pattern_x() 280 } else if (offsetPattern.equals("+HH:MM:ss") && noOffset.equals("Z")) { in test_print_pattern_x() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 94 if (!p.getProperty("Provider.id name").equals( in testProvider() 98 if (!p.getProperty("Provider.id version").equals( in testProvider() 102 if (!p.getProperty("Provider.id info").equals( in testProvider() 106 if (!p.getProperty("Provider.id className").equals( in testProvider() 149 if (!"value 1".equals(p.getProperty("Property 1").trim()) || in testPutAllMap() 150 !"attrValue".equals(p.getProperty("serviceName.algName attrName").trim()) || in testPutAllMap() 151 … !"standardName".equals(p.getProperty("Alg.Alias.engineClassName.aliasName").trim()) || in testPutAllMap() 152 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim()) ) { in testPutAllMap() 176 if (key.equals("MessageDigest.SHA-1") && val.equals("SomeClassName")) { in testEntrySet() 179 if (key.equals("Alg.Alias.MessageDigest.SHA1") && val.equals("SHA-1")) { in testEntrySet() [all …]
|
/libcore/ojluni/src/main/java/java/time/ |
D | Clock.java | 343 if (offsetDuration.equals(Duration.ZERO)) { in offset() 424 public boolean equals(Object obj) { in equals() method in Clock 425 return super.equals(obj); in equals() 460 if (zone.equals(this.zone)) { // intentional NPE in withZone() 474 public boolean equals(Object obj) { in equals() method in Clock.SystemClock 476 return zone.equals(((SystemClock) obj).zone); in equals() 510 if (zone.equals(this.zone)) { // intentional NPE in withZone() 524 public boolean equals(Object obj) { in equals() method in Clock.FixedClock 527 return instant.equals(other.instant) && zone.equals(other.zone); in equals() 560 if (zone.equals(baseClock.getZone())) { // intentional NPE in withZone() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | RC2ParameterSpecTest.java | 127 if (! Arrays.equals(iv, result)) { in testGetIV() 156 ps1.equals(ps1)); in testEquals() 159 ps1.equals(ps2)); in testEquals() 162 ps2.equals(ps1)); in testEquals() 165 ps2.equals(ps3)); in testEquals() 169 ps1.equals(ps3)); in testEquals() 172 ps1.equals(null)); in testEquals() 175 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals() 178 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals() 202 assertTrue(ps1.equals(ps2)); in test_constructorI()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidHashMapTest.java | 122 if (s.equals("one")) { in testKeyIterator() 124 } else if (s.equals("two")) { in testKeyIterator() 126 } else if (s.equals("three")) { in testKeyIterator() 128 } else if (s.equals("four")) { in testKeyIterator() 157 if (o.equals(ONE)) { in testValueIterator() 159 } else if (o.equals(TWO)) { in testValueIterator() 161 } else if (o.equals(THREE)) { in testValueIterator() 163 } else if (o.equals(FOUR)) { in testValueIterator() 192 if (o.toString().equals("one=1")) { in testEntryIterator() 194 } else if (o.toString().equals("two=2")) { in testEntryIterator() [all …]
|