Home
last modified time | relevance | path

Searched refs:expectedValues (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java62 private void assertIntsEqual(int[] expectedValues, long ptr, boolean swap) { in assertIntsEqual() argument
63 for (int i = 0; i < expectedValues.length; ++i) { in assertIntsEqual()
64 assertEquals(expectedValues[i], Memory.peekInt(ptr + Integer.BYTES * i, swap)); in assertIntsEqual()
103 private void assertLongsEqual(long[] expectedValues, long ptr, boolean swap) { in assertLongsEqual() argument
104 for (int i = 0; i < expectedValues.length; ++i) { in assertLongsEqual()
105 assertEquals(expectedValues[i], Memory.peekLong(ptr + Long.BYTES * i, swap)); in assertLongsEqual()
141 private void assertShortsEqual(short[] expectedValues, long ptr, boolean swap) { in assertShortsEqual() argument
142 for (int i = 0; i < expectedValues.length; ++i) { in assertShortsEqual()
143 assertEquals(expectedValues[i], Memory.peekShort(ptr + Short.BYTES * i, swap)); in assertShortsEqual()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java102 ArrayList<String> expectedValues = new ArrayList<>(Arrays.asList(array)); in testSpliteratorObjectArray() local
109 SpliteratorTester.runBasicIterationTests(sp, expectedValues); in testSpliteratorObjectArray()
115 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); in testSpliteratorObjectArray()
130 ArrayList<String> expectedValues = new ArrayList<>( in testSpliteratorObjectArrayRange() local
138 SpliteratorTester.runBasicIterationTests(sp, expectedValues); in testSpliteratorObjectArrayRange()
144 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); in testSpliteratorObjectArrayRange()
443 ArrayList<String> expectedValues = new ArrayList<>(Arrays.asList(array)); in testSpliterator_Collection() local
452 SpliteratorTester.runBasicIterationTests(sp, expectedValues); in testSpliterator_Collection()
458 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); in testSpliterator_Collection()
474 ArrayList<String> expectedValues = new ArrayList<>(asList); in testSpliterator_sizedIterator() local
[all …]
DHashMapTest.java120 ArrayList<Integer> expectedValues = new ArrayList<>( in test_spliterator_values() local
124 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_values() local
125 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_values()
DTreeMapTest.java674 List<String> expectedValues = Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", in test_spliterator_values() local
678 values.spliterator(), expectedValues, String::compareTo); in test_spliterator_values() local
679 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_values()
710 List<Map.Entry<String, String>> expectedValues = Arrays.asList( in test_spliterator_entrySet() local
732 SpliteratorTester.runBasicIterationTests_unordered(entries.spliterator(), expectedValues, in test_spliterator_entrySet() local
734 SpliteratorTester.runBasicSplitTests(entries, expectedValues, comparator); in test_spliterator_entrySet()
DLinkedHashMapTest.java465 ArrayList<Integer> expectedValues = new ArrayList<>( in test_spliterator_values() local
470 values.spliterator(), expectedValues); in test_spliterator_values() local
471 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_values()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DWeakHashMapTest.java571 ArrayList<String> expectedValues = new ArrayList<>(values); in test_spliterator_valueSet() local
574 values.spliterator(), expectedValues, String::compareTo); in test_spliterator_valueSet() local
575 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_valueSet()
599 ArrayList<Map.Entry<String, String>> expectedValues = new ArrayList<>(values); in test_spliterator_entrySet() local
604 SpliteratorTester.runBasicIterationTests_unordered(values.spliterator(), expectedValues, in test_spliterator_entrySet() local
606 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator); in test_spliterator_entrySet()
DHashMapTest.java875 ArrayList<String> expectedValues = new ArrayList<>(values); in test_spliterator_valueSet() local
877 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_valueSet() local
878 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_valueSet()
907 ArrayList<Map.Entry<String, String>> expectedValues = new ArrayList<>(values); in test_spliterator_entrySet() local
912 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_entrySet() local
913 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator); in test_spliterator_entrySet()
DLinkedHashMapTest.java875 ArrayList<String> expectedValues = new ArrayList<>(values); in test_spliterator_valueSet() local
877 SpliteratorTester.runBasicIterationTests_unordered(values.spliterator(), expectedValues, in test_spliterator_valueSet() local
879 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_valueSet()
906 ArrayList<Map.Entry<String, String>> expectedValues = new ArrayList<>(entries); in test_spliterator_entrySet() local
911 SpliteratorTester.runBasicIterationTests_unordered(entries.spliterator(), expectedValues, in test_spliterator_entrySet() local
913 SpliteratorTester.runBasicSplitTests(entries, expectedValues, comparator); in test_spliterator_entrySet()
DIdentityHashMapTest.java1022 ArrayList<String> expectedValues = new ArrayList<>(values); in test_spliterator_valueSet() local
1024 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_valueSet() local
1025 SpliteratorTester.runBasicSplitTests(values, expectedValues); in test_spliterator_valueSet()
1050 ArrayList<Map.Entry<String, String>> expectedValues = new ArrayList<>(values); in test_spliterator_entrySet() local
1055 SpliteratorTester.runBasicIterationTests(values.spliterator(), expectedValues); in test_spliterator_entrySet() local
1056 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator); in test_spliterator_entrySet()