- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 6,075 for expect (0.22 sec)
-
tests/generics_test.go
} if len(results) != 2 { t.Errorf("expected 2 distinct names, got %d", len(results)) } var names []string for _, u := range results { names = append(names, u.Name) } sort.Strings(names) expected := []string{"GenericsDistinctDup", "GenericsDistinctUnique"} if !reflect.DeepEqual(names, expected) { t.Errorf("expected names %v, got %v", expected, names) } }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0) -
src/bytes/bytes_test.go
m := Map(maxRune, []byte(a)) expect := tenRunes(unicode.MaxRune) if string(m) != expect { t.Errorf("growing: expected %q got %q", expect, m) } // 2. Shrink minRune := func(r rune) rune { return 'a' } m = Map(minRune, []byte(tenRunes(unicode.MaxRune))) expect = a if string(m) != expect { t.Errorf("shrinking: expected %q got %q", expect, m) } // 3. Rot13
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
tests/preload_test.go
t.Errorf("failed to create org, got err: %v", err) } tests := []struct { name string preloads map[string][]interface{} expect Org }{ { name: "address country", preloads: map[string][]interface{}{"Address.Country": {}}, expect: Org{ ID: org.ID, PostalAddress: EmbeddedAddress{ ID: org.PostalAddress.ID, Name: org.PostalAddress.Name,
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
Closeables.closeQuietly((InputStream) null); } public void testCloseQuietlyNull_reader() { Closeables.closeQuietly((Reader) null); } // Set up a closeable to expect to be closed, and optionally to throw an // exception. private void setupCloseable(boolean shouldThrow) throws IOException { mockCloseable = mock(Closeable.class); if (shouldThrow) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0) -
cmd/lock-rest-server.go
ll *localLocker } // RefreshHandler - refresh the current lock func (l *lockRESTServer) RefreshHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) { // Add a timeout similar to what we expect upstream. ctx, cancel := context.WithTimeout(context.Background(), dsync.DefaultTimeouts.RefreshCall) defer cancel() resp := lockRPCRefresh.NewResponse() refreshed, err := l.ll.Refresh(ctx, *args) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jan 31 19:54:34 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java
} /** * Test method for {@link org.codelibs.core.collection.EmptyIterator#remove()} * . */ @Test public void testRemove() { exception.expect(ClUnsupportedOperationException.class); exception.expectMessage(is("remove")); final EmptyIterator<String> emptyIterator = new EmptyIterator<String>(); emptyIterator.remove(); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java
public void testSpliteratorUnknownOrder() { SpliteratorTester.of(collection::spliterator).expect(getSampleElements()); } @CollectionFeature.Require(KNOWN_ORDER) public void testSpliteratorKnownOrder() { SpliteratorTester.of(collection::spliterator).expect(getOrderedElements()).inOrder(); } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayIteratorTest.java
assertThat(itr.next(), equalTo("b")); assertThat(itr.next(), equalTo("c")); } /** * */ @Test public void testNoSuchElement() { exception.expect(NoSuchElementException.class); exception.expectMessage(is("index=2")); final ArrayIterator<Integer> itr = new ArrayIterator<Integer>(new Integer[] { 1, 2 }); itr.next(); itr.next();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/EnumerationIteratorTest.java
assertThat(itr.hasNext(), is(not(true))); } /** * @throws Exception */ @Test public void testRemove() throws Exception { exception.expect(ClUnsupportedOperationException.class); exception.expectMessage(is("remove")); final Vector<String> vector = new Vector<String>(); vector.add("a");
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeParameter.java
/* * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.4K bytes - Viewed (0)