- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 785 for EXPECTED (0.41 seconds)
-
guava-tests/test/com/google/common/collect/FluentIterableTest.java
FluentIterable<String> cycle = FluentIterable.from(asList("a", "b")).cycle(); int howManyChecked = 0; for (String string : cycle) { String expected = (howManyChecked % 2 == 0) ? "a" : "b"; assertThat(string).isEqualTo(expected); if (howManyChecked++ == 5) { break; } } // We left the last iterator pointing to "b". But a new iterator should
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/AbstractGraphTest.java
} /** * Verifies that the {@code Set} returned by {@code nodes} has the expected mutability property * (see the {@code Graph} documentation for more information). */ @Test public abstract void nodes_checkReturnedSetMutability(); /** * Verifies that the {@code Set} returned by {@code adjacentNodes} has the expected mutability * property (see the {@code Graph} documentation for more information). */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 17.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
static void testSort(long[] input, long[] expected) { input = Arrays.copyOf(input, input.length); UnsignedLongs.sort(input); assertThat(input).isEqualTo(expected); } static void testSort(long[] input, int from, int to, long[] expected) { input = Arrays.copyOf(input, input.length); UnsignedLongs.sort(input, from, to); assertThat(input).isEqualTo(expected); } public void testSortIndexed() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/10_contributor_bug_report.yml
id: current-behavior attributes: label: Current Behavior description: Tell us what happens validations: required: true - type: textarea id: expected-behavior attributes: label: Expected Behavior description: Tell us what should happen validations: required: true - type: textarea id: context attributes: label: Context (optional)Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Sep 09 14:48:49 GMT 2024 - 3K bytes - Click Count (1) -
android/guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java
throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else { throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java
throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else { throw new AssertionError("expected to throw " + expectedThrowable.getSimpleName());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.2K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
} @Test public void testConstructorWithNullMethod() { String url = "https://example.com"; try { new CurlRequest(null, url); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { assertTrue(e.getMessage().contains("method must not be null")); } } @TestCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 24.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
for (int i = 0; i < sample.size(); i++) { Collection<String> misleading = misleadingSizeCollection(delta); List<String> expected = sample.subList(0, i); misleading.addAll(expected); assertEquals(expected, ImmutableList.copyOf(misleading)); assertEquals(expected, ImmutableList.copyOf((Iterable<String>) misleading)); } } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.4K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts
fun Task.isKotlinJsIrLink() = this.javaClass.simpleName.startsWith("KotlinJsIrLink") fun isMonitoredAsciidoctorTask() = false // No asciidoctor tasks are cacheable for now fun Project.isExpectedAsciidoctorCacheMiss() = // Expected cache-miss for asciidoctor task: // 1. CompileAll is the seed build for docs:distDocs // 2. BuildDistributions is the seed build for other asciidoctor tasks // 3. buildScanPerformance test, which doesn't depend on compileAll
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Apr 11 20:57:49 GMT 2025 - 4.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java
} public void testFailed() { Exception failureCause = new Exception(); ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(immediateFailedFuture(failureCause))); assertThat(expected).hasCauseThat().isEqualTo(failureCause); } public void testCancelled() throws ExecutionException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 01:35:55 GMT 2025 - 2.3K bytes - Click Count (0)