- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 204 for setDist (0.75 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java
@ListFeature.Require(SUPPORTS_SET) public void testReplaceAll() { getList().replaceAll(e -> samples.e3()); expectContents(Collections.nCopies(getNumElements(), samples.e3())); } @ListFeature.Require(SUPPORTS_SET) public void testReplaceAll_changesSome() { getList().replaceAll(e -> e.equals(samples.e0()) ? samples.e3() : e); E[] expected = createSamplesArray();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 28 16:27:15 UTC 2018 - 2.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
protected ListIterator<E> newTargetIterator() { resetCollection(); return getList().listIterator(); } @Override protected void verify(List<E> elements) { expectContents(elements); } }.test(); } public void testListIterator_tooLow() { try { getList().listIterator(-1); fail(); } catch (IndexOutOfBoundsException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
assertTrue("add(present) should return true", getList().add(e0())); expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) /* * absent = ZERO isn't required, since unmodList.add() must * throw regardless, but it keeps the method name accurate. */ public void testAdd_unsupportedPresent() { try { getList().add(e0());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
// Avoid expectEquals() here to delay reason manufacture until necessary. if (getList().size() != expectedList.size()) { fail("size mismatch: " + reportContext(expectedList)); } for (int i = 0; i < expectedList.size(); i++) { E expected = expectedList.get(i); E actual = getList().get(i); if (expected != actual && (expected == null || !expected.equals(actual))) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 2.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java
public void testToArray_noArg() { Object[] actual = getList().toArray(); assertArrayEquals("toArray() order should match list", createOrderedArray(), actual); } @CollectionSize.Require(absent = ZERO) public void testToArray_tooSmall() { Object[] actual = getList().toArray(new Object[0]);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java
assertTrue( "addAll(allPresent) should return true", getList().addAll(MinimalCollection.of(e0()))); expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) public void testAddAll_unsupportedAllPresent() { try { getList().addAll(MinimalCollection.of(e0())); fail("addAll(allPresent) should throw");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 2.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListGetTester.java
expectContents(createOrderedArray()); } public void testGet_negative() { try { getList().get(-1); fail("get(-1) should throw"); } catch (IndexOutOfBoundsException expected) { } } public void testGet_tooLarge() { try { getList().get(getNumElements()); fail("get(size) should throw"); } catch (IndexOutOfBoundsException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 1.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java
protected ListIterator<E> newTargetIterator() { resetCollection(); return getList().listIterator(); } @Override protected void verify(List<E> elements) { expectContents(elements); } }.test(); } public void testListIterator_tooLow() { try { getList().listIterator(-1); fail(); } catch (IndexOutOfBoundsException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListIndexOfTester.java
@Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class ListIndexOfTester<E> extends AbstractListIndexOfTester<E> { @Override protected int find(Object o) { return getList().indexOf(o); } @Override protected String getMethodName() { return "indexOf"; } @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
assertTrue("add(present) should return true", getList().add(e0())); expectAdded(e0()); } @CollectionFeature.Require(absent = SUPPORTS_ADD) @CollectionSize.Require(absent = ZERO) /* * absent = ZERO isn't required, since unmodList.add() must * throw regardless, but it keeps the method name accurate. */ public void testAdd_unsupportedPresent() { try { getList().add(e0());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3.2K bytes - Viewed (0)