Home
last modified time | relevance | path

Searched refs:equal (Results 1 – 25 of 37) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/StringBuffer/
DCapacity.java45 equal(16, new StringBuffer().capacity()); in test()
46 equal(16, new StringBuilder().capacity()); in test()
49 equal(size, buff.capacity()); in test()
50 equal(size, bild.capacity()); in test()
53 equal(size, buff.capacity()); in test()
54 equal(size, bild.capacity()); in test()
57 equal(size*2+2, buff.capacity()); in test()
58 equal(size*2+2, bild.capacity()); in test()
62 equal(size*2+2, buff.capacity()); in test()
63 equal(size*2+2, bild.capacity()); in test()
[all …]
/libcore/ojluni/src/test/java/util/Collections/
DAsLifoQueue.java42 equal(deq.toString(), "[b, a, c]"); in realMain()
44 equal(deq.toString(), "[b, a, c, d]"); in realMain()
47 equal(deq.toString(),"[e, b, a, c, d]"); in realMain()
54 check(q.isEmpty()); equal(q.size(), 0); in realMain()
55 check(q.add("a")); check(! q.isEmpty()); equal(q.size(), 1); in realMain()
58 equal(q.size(), 3); in realMain()
60 equal(q.size(), 3); in realMain()
62 equal(q.size(), 3); in realMain()
63 equal(q.toString(), "[c, b, a]"); in realMain()
64 equal(q.peek(), "c"); in realMain()
[all …]
DCheckedNull.java82 equal(detailMessage, cce(f).getMessage()); in equalCCE()
90 equal(c.size(), s+1); in add()
95 equal(c.size(), s+1); in add()
97 equal(c.size(), s); in add()
121 equal(null, m.put(k, v)); in put()
124 equal(m.size(), s+1); in put()
125 equal(v, m.remove(k)); in put()
131 equal(m.size(), s+1); in put()
132 equal(v,m.remove(k)); in put()
133 equal(m.size(), s); in put()
[all …]
DReverseOrder2.java58 equal(Collections.reverseOrder(cmp), in realMain()
61 equal(Collections.reverseOrder(cmp).hashCode(), in realMain()
78 equal(list, golden); in test()
100 equal(list, golden2); in test2()
116 static void equal(Object x, Object y) { in equal() method in ReverseOrder2
DNCopies.java120 boolean equal = pair[0] == pair[1];
122 …check(equal == Collections.nCopies(pair[0], element).equals(Collections.nCopies(pair[1], element))…
123 …check(equal == Collections.nCopies(pair[0], element).equals(referenceNCopies(pair[1], element)), m…
124 …check(equal == referenceNCopies(pair[0], element).equals(Collections.nCopies(pair[1], element)), m…
DEmptyIterator.java97 equal(m, unmodifiableMap(m)); in testEmptyMap()
106 equal(a.length, 0); in testToArray()
107 equal(a.getClass().getComponentType(), Object.class); in testToArray()
142 void equal(Object x, Object y) { in equal() method in EmptyIterator
DBigBinarySearch.java74 try { equal(i, Collections.binarySearch(l, l.get(i))); } in checkBinarySearch()
81 try { equal(i, Collections.binarySearch(l, l.get(i), comparator)); } in checkBinarySearch()
116 static void equal(Object x, Object y) { in equal() method in BigBinarySearch
DSetFromMap.java44 static void equal(Object x, Object y) { in equal() method in SetFromMap
65 equal(s.size(), 3); in realMain()
/libcore/ojluni/src/test/java/util/BitSet/
DPreviousBits.java42 equal((int)((h >> 32) ^ h), s.hashCode()); in testHashCode()
65 equal(-1, s.previousSetBit(i)); in test()
66 equal( i, s.previousClearBit(i)); in test()
68 equal(-1, s.nextSetBit(i)); in test()
69 equal( i, s.nextClearBit(i)); in test()
80 equal(-1, s.previousSetBit(i)); in test()
81 equal( i, s.previousClearBit(i)); in test()
83 equal(j, s.nextSetBit(i)); in test()
84 equal(i, s.nextClearBit(i)); in test()
88 equal(j, s.previousSetBit(j)); in test()
[all …]
DImportExport.java40 void equal(byte[] x, byte[] y) { in equal() method in ImportExport
44 void equal(long[] x, long[] y) { in equal() method in ImportExport
48 void equal(byte[] bytes, BitSet s) { in equal() method in ImportExport
49 equal(s, BitSet.valueOf(bytes)); in equal()
50 equal(s, BitSet.valueOf(ByteBuffer.wrap(bytes))); in equal()
51 equal(s, BitSet.valueOf( in equal()
59 equal(s.toByteArray(), new byte[0]); in checkEmptyBitSet()
60 equal(s.toLongArray(), new long[0]); in checkEmptyBitSet()
68 equal(bytes, s); in test()
69 equal(BitSet.valueOf(bytes).toByteArray(), new byte[0]); in test()
[all …]
DStickySize.java38 equal(expectedSize, clone(s).size()); in equalClones()
39 equal(expectedSize, serialClone(s).size()); in equalClones()
40 equal(expectedSize, s.size()); in equalClones()
41 equal(clone(s), serialClone(s)); in equalClones()
48 equal(s.size(), 64); in realMain()
52 equal(s.size(), 8*64); in realMain()
55 equal(s.size(), 8*64); in realMain()
84 static void equal(Object x, Object y) { in equal() method in StickySize
/libcore/ojluni/src/test/java/lang/String/
DStrip.java62 equal(String_strip(" abc "), "abc"); in testStrip()
63 equal(String_stripLeading(" abc "), "abc "); in testStrip()
64 equal(String_stripTrailing(" abc "), " abc"); in testStrip()
65 equal(String_strip(" abc\u2022 "), "abc\u2022"); in testStrip()
66 equal(String_stripLeading(" abc\u2022 "), "abc\u2022 "); in testStrip()
67 equal(String_stripTrailing(" abc\u2022 "), " abc\u2022"); in testStrip()
68 equal(String_strip(""), ""); in testStrip()
69 equal(String_stripLeading(""), ""); in testStrip()
70 equal(String_stripTrailing(""), ""); in testStrip()
71 equal(String_strip("\b"), "\b"); in testStrip()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldInputStreamTest.java89 boolean equal = true; in test_read$B()
98 equal &= (b[i] == ref[i]); in test_read$B()
100 assertTrue("Test 1: Wrong bytes read.", equal); in test_read$B()
110 equal &= (b[i] == ref[i + 10]); in test_read$B()
112 assertTrue("Test 2: Wrong bytes read.", equal); in test_read$B()
169 boolean equal = true; in test_read$BII()
178 equal &= (b[i] == ref[i]); in test_read$BII()
180 assertTrue("Test 1: Wrong bytes read.", equal); in test_read$BII()
187 equal &= (b[i] == ref[i]); in test_read$BII()
189 assertTrue("Test 2: Wrong bytes read.", equal); in test_read$BII()
[all …]
/libcore/ojluni/src/test/java/util/WeakHashMap/
DGCDuringIteration.java99 equal(map.get(k), null); in put()
100 equal(map.put(k, v), null); in put()
101 equal(map.get(k), v); in put()
103 equal(map.put(k, v), v); in put()
104 equal(map.get(k), v); in put()
107 equal(map.keySet().iterator().next(), k); in put()
108 equal(map.values().iterator().next(), v); in put()
116 equal(it.next().getValue(), i); in checkIterator()
139 equal(map.size(), 0); in test()
146 equal(map.size(), foos.length); in test()
[all …]
/libcore/ojluni/src/test/java/util/Arrays/
DArrayObjectMethods.java41 equal(Arrays.deepToString(null), "null"); in test()
42 equal(Arrays.deepToString(new Object[]{}), "[]"); in test()
43 equal(Arrays.deepToString(new Object[]{null}), "[null]"); in test()
44 equal(Arrays.deepToString(new Object[]{null, 1}), "[null, 1]"); in test()
45 equal(Arrays.deepToString(new Object[]{1, null}), "[1, null]"); in test()
46 equal(Arrays.deepToString(new Object[]{new Object[]{}, null}), "[[], null]"); in test()
51 equal(Arrays.deepToString(a), "[1, [...]]"); in test()
53 equal(Arrays.deepToString(a), "[[...], [...]]"); in test()
55 equal(Arrays.deepToString(a), "[[1, null, [...]], [1, null, [...]]]"); in test()
61 equal(Arrays.toString(a), PrimitiveArrays.asList(a).toString()); in test()
[all …]
DFloatDoubleOrder.java65 equal(Arrays.binarySearch(sortedDbl, sortedDbl[i]), i); in test()
67 equal(Arrays.binarySearch(sortedDbl, negNan), i); in test()
92 equal(Arrays.binarySearch(sortedFlt, sortedFlt[i]), i); in test()
94 equal(Arrays.binarySearch(sortedFlt, negNaN), i); in test()
116 void equal(Object x, Object y) { in equal() method in FloatDoubleOrder
DFill.java70 static void equal(Object x, Object y) { in equal() method in Fill
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java196 equal(singletonSet.size(), 1); in realMain()
201 equal(singletonList.size(), 1); in realMain()
210 equal(singletonMap.size(), 1); in realMain()
265 equal(listCollected, List.of(1, 2, 3)); in realMain()
337 equal(setCollected, Set.of(1, 2, 3)); in realMain()
379 equal(mapCollected1, Map.of(1, 101, 2, 202, 3, 303)); in realMain()
395 equal(mapCollected2, Map.of(1, 202, 2, 404, 3, 606)); in realMain()
424 equal(c.size(), 0); in testEmptyCollection()
425 equal(c.toString(),"[]"); in testEmptyCollection()
426 equal(c.toArray().length, 0); in testEmptyCollection()
[all …]
/libcore/ojluni/src/test/java/util/PriorityQueue/
DForgetMeNot.java63 equal(size, q.size()+1); in remove()
92 equal(it.next(), 1); in realMain()
114 equal(it.next(), 0); in realMain()
115 equal(it.next(), 4); in realMain()
116 equal(it.next(), 1); in realMain()
117 equal(it.next(), 6); in realMain()
124 equal(it.next(), 7); in realMain()
130 equal(it.next(), 3); in realMain()
131 equal(it.next(), 2); in realMain()
147 static void equal(Object x, Object y) { in equal() method in ForgetMeNot
/libcore/ojluni/src/test/java/util/ArrayList/
DBug6533203.java45 equal(it.nextIndex(), 0); in test()
47 equal(it.nextIndex(), 0); in test()
57 void equal(Object x, Object y) { in equal() method in Bug6533203
/libcore/ojluni/src/test/java/util/Timer/
DDelayOverflow.java89 equal(count.get(), 1); in test()
106 void equal(Object x, Object y) { in equal() method in DelayOverflow
/libcore/ojluni/src/test/java/util/Vector/
DCopyInto.java54 static void equal(Object x, Object y) { in equal() method in CopyInto
/libcore/ojluni/src/test/java/util/Random/
DNextBytes.java57 static void equal(Object x, Object y) { in equal() method in NextBytes
/libcore/ojluni/src/main/java/sun/security/x509/
DDistributionPoint.java336 boolean equal = Objects.equals(this.fullName, other.fullName) in equals()
340 return equal; in equals()
/libcore/ojluni/src/main/java/java/util/
DArrayList.java617 boolean equal = (o.getClass() == ArrayList.class) in equals()
622 return equal; in equals()
642 boolean equal; in equalsArrayList()
643 if (equal = (s == other.size)) { in equalsArrayList()
651 equal = false; in equalsArrayList()
657 return equal; in equalsArrayList()
1351 boolean equal = root.equalsRange((List<?>)o, offset, offset + size); in equals()
1353 return equal; in equals()

12