- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for Promise (0.03 sec)
-
android/guava/src/com/google/common/collect/ImmutableCollection.java
* we're copying into a `contents` array whose type allows it to contain nulls. Still, it's * worth noting that we promise not to put nulls into the array in the first `size` elements. * We uphold that promise here because our callers promise that `elements` will not contain * nulls in its first `n` elements. */ System.arraycopy(elements, 0, contents, size, n); size += n;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetsTest.java
} public void testPowerSetIteration_manual() { ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3); Set<Set<Integer>> powerSet = powerSet(elements); // The API doesn't promise this iteration order, but it's convenient here. Iterator<Set<Integer>> i = powerSet.iterator(); assertEquals(ImmutableSet.of(), i.next()); assertEquals(ImmutableSet.of(1), i.next());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/CharMatcherTest.java
throw new AssertionFailedError("You weren't supposed to actually invoke me!"); } }; public void testAnyAndNone_logicalOps() throws Exception { // These are testing behavior that's never promised by the API, but since // we're lucky enough that these do pass, it saves us from having to write // more excruciating tests! Hooray! assertSame(CharMatcher.any(), CharMatcher.none().negate());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/CharMatcherTest.java
throw new AssertionFailedError("You weren't supposed to actually invoke me!"); } }; public void testAnyAndNone_logicalOps() throws Exception { // These are testing behavior that's never promised by the API, but since // we're lucky enough that these do pass, it saves us from having to write // more excruciating tests! Hooray! assertSame(CharMatcher.any(), CharMatcher.none().negate());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
assertSplitterIterableIsLazy(Splitter.on(",")); } @J2ktIncompatible @GwtIncompatible // java.util.regex.Pattern @AndroidIncompatible // not clear that j.u.r.Matcher promises to handle mutations during use public void testSplitterIterableIsLazy_pattern() { if (!CommonPattern.isPcreLike()) { return; } assertSplitterIterableIsLazy(Splitter.onPattern(",")); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
) val url = server.url("/a") assertThat(get(url).body.string()).isEqualTo("a") val i: Iterator<String> = cache.urls() cache.evictAll() // The URL was evicted before hasNext() made any promises. assertThat(i.hasNext()).isFalse() assertFailsWith<NoSuchElementException> { i.next() } } /** Test https://github.com/square/okhttp/issues/1712. */ @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 113.6K bytes - Viewed (0)