/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/ojluni/src/test/java/security/KeyAgreement/ |
D | KeySizeTest.java | 144 equals(dhPri.getX(), dhPriDecod.getX()); in testKeyAttributes() 145 equals(dhPri.getFormat(), dhPriDecod.getFormat()); in testKeyAttributes() 146 equals(dhPri.getEncoded(), dhPriDecod.getEncoded()); in testKeyAttributes() 147 equals(dhPri.getParams().getG(), dhPriDecod.getParams().getG()); in testKeyAttributes() 148 equals(dhPri.getParams().getL(), dhPriDecod.getParams().getL()); in testKeyAttributes() 149 equals(dhPri.getParams().getP(), dhPriDecod.getParams().getP()); in testKeyAttributes() 162 equals(dhPub.getY(), dhPubDecod.getY()); in testKeyAttributes() 163 equals(dhPub.getFormat(), dhPubDecod.getFormat()); in testKeyAttributes() 164 equals(dhPub.getEncoded(), dhPubDecod.getEncoded()); in testKeyAttributes() 165 equals(dhPub.getParams().getG(), dhPubDecod.getParams().getG()); in testKeyAttributes() [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 …]
|
/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/ojluni/src/test/java/util/LinkedHashMap/ |
D | Basic.java | 100 Assert.assertTrue(m.equals(m2)); in testBasic() 101 Assert.assertTrue(m2.equals(m)); in testBasic() 103 Assert.assertTrue(s.equals(s2)); in testBasic() 104 Assert.assertTrue(s2.equals(s)); in testBasic() 109 Assert.assertTrue(m.equals(m2)); in testBasic() 110 Assert.assertTrue(m2.equals(m)); in testBasic() 112 Assert.assertTrue(s.equals(s2)); in testBasic() 113 Assert.assertTrue(s2.equals(s)); in testBasic() 139 Assert.assertTrue(new ArrayList(m.keySet()).equals(l)); in testBasic() 142 Assert.assertTrue(m.get(x).equals(x)); in testBasic() [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | MinMax.java | 42 if (!Collections.min(s).equals("x")) in main() 44 if (!Collections.max(s).equals("x")) in main() 48 if (!Collections.min(s).equals("x")) in main() 50 if (!Collections.max(s).equals("y")) in main() 54 if (!Collections.min(s).equals("w")) in main() 56 if (!Collections.max(s).equals("y")) in main() 61 if (!Collections.min(s, Collections.reverseOrder()).equals("x")) in main() 63 if (!Collections.max(s, Collections.reverseOrder()).equals("x")) in main() 67 if (!Collections.min(s, Collections.reverseOrder()).equals("y")) in main() 69 if (!Collections.max(s, Collections.reverseOrder()).equals("x")) in main() [all …]
|
/libcore/luni/src/test/java/libcore/javax/xml/namespace/ |
D | QNameTest.java | 32 assertTrue(qName.equals(qName)); in testEquals() 33 assertFalse(qName.equals(null)); in testEquals() 34 assertFalse(qName.equals(new Object())); in testEquals() 37 assertTrue(qName.equals(qNameSame)); in testEquals() 38 assertTrue(qNameSame.equals(qName)); in testEquals() 42 assertFalse(qName.equals(qNameDifferentNamespace)); in testEquals() 43 assertFalse(qNameDifferentNamespace.equals(qName)); in testEquals() 47 assertFalse(qName.equals(qNameDifferentLocalPart)); in testEquals() 48 assertFalse(qNameDifferentLocalPart.equals(qName)); in testEquals() 52 assertTrue(qName.equals(qNameDifferentPrefix)); in testEquals() [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/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/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/ojluni/src/test/java/nio/file/Path/ |
D | Misc.java | 48 assertTrue(thisFile.equals(thisFile)); in testEqualsAndHashCode() 49 assertTrue(!thisFile.equals(thatFile)); in testEqualsAndHashCode() 51 assertTrue(!thisFile.equals(null)); in testEqualsAndHashCode() 52 assertTrue(!thisFile.equals(new Object())); in testEqualsAndHashCode() 55 assertTrue(!thisFile.equals(likeThis)); in testEqualsAndHashCode() 65 assertTrue(d.toString().equals(dir.toString())); in testToFile() 66 assertTrue(d.toPath().equals(dir)); in testToFile() 104 assertTrue(link.toRealPath().equals(resolvedFile.toRealPath())); in testToRealPath() 113 assertTrue(link.toRealPath(NOFOLLOW_LINKS).getFileName().equals(link.getFileName())); in testToRealPath() 122 assertTrue(link.toRealPath(NOFOLLOW_LINKS).getFileName().equals(link.getFileName())); in testToRealPath() [all …]
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | OptionsTest.java | 104 if (!getval.equals(legacyget)) { in doSocketTests() 126 if (!getval.equals(legacyget)) { in doDgSocketTests() 145 if (!getval.equals(legacyget)) { in doMcSocketTests() 168 if (!getval.equals(legacyget)) { in doServerSocketTests() 183 if (type.equals(Socket.class)) { in legacyGetOption() 188 if (option.equals(StandardSocketOptions.SO_KEEPALIVE)) { in legacyGetOption() 190 } else if (option.equals(StandardSocketOptions.SO_SNDBUF)) { in legacyGetOption() 192 } else if (option.equals(StandardSocketOptions.SO_RCVBUF)) { in legacyGetOption() 194 } else if (option.equals(StandardSocketOptions.SO_REUSEADDR)) { in legacyGetOption() 196 } else if (option.equals(StandardSocketOptions.SO_REUSEPORT) && reuseport) { in legacyGetOption() [all …]
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | StackRecorderUtil.java | 68 if (!tf.declaringClass.equals(sf.getDeclaringClass())) { in compareFrame() 87 if (compareClassNames && !tf.className().equals(sf.getClassName())) { in compareFrame() 91 if (compareMethodNames && !tf.methodName.equals(sf.getMethodName())) { in compareFrame() 97 if (!(ste.getClassName().equals(tf.className()) && in compareFrame() 98 ste.getMethodName().equals(tf.methodName)) && in compareFrame() 99 ste.getFileName().equals(tf.fileName)) { in compareFrame() 103 if (!Objects.equals(ste.getClassName(), sf.getClassName()) in compareFrame() 104 || !Objects.equals(ste.getMethodName(), sf.getMethodName()) in compareFrame() 105 || !Objects.equals(ste.getFileName(), sf.getFileName()) in compareFrame() 106 || !Objects.equals(ste.getLineNumber(), sf.getLineNumber()) in compareFrame() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ListTest.java | 46 .equals(Integer.valueOf(counter))); in runTest() 52 .get(50).equals(Integer.valueOf(1000))); in runTest() 55 list.get(51).equals(Integer.valueOf(50))); in runTest() 58 list.get(49).equals(Integer.valueOf(49))); in runTest() 62 .equals(Integer.valueOf(2000))); in runTest() 64 list.get(51).equals(Integer.valueOf(50))); in runTest() 66 .get(49).equals(Integer.valueOf(49))); in runTest() 70 list.get(50).equals(Integer.valueOf(50))); in runTest() 73 list.get(51).equals(Integer.valueOf(51))); in runTest() 76 list.get(49).equals(Integer.valueOf(49))); in runTest() [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/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/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 …]
|