- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for testKey1 (0.17 sec)
-
test/typeparam/maps.go
for k, v := range m { m[k] = f(v) } } var m1 = map[int]int{1: 2, 2: 4, 4: 8, 8: 16} var m2 = map[int]string{1: "2", 2: "4", 4: "8", 8: "16"} func TestKeys() { want := []int{1, 2, 4, 8} got1 := _Keys(m1) sort.Ints(got1) if !_SliceEqual(got1, want) { panic(fmt.Sprintf("_Keys(%v) = %v, want %v", m1, got1, want)) } got2 := _Keys(m2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
@Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapKeysTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(SEVERAL) public void testKeys() { resetContainer( Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); Multiset<K> keys = multimap().keys(); assertEquals(2, keys.count(k0()));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/linearized_read_test.go
// detail ever changes. // [1] https://etcd.io/docs/v3.5/learning/api_guarantees/#isolation-level-and-consistency-of-replicas ctx, store, etcdClient := testSetup(t) dir := "/testing" key := dir + "/testkey" out := &example.Pod{} obj := &example.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo", SelfLink: "testlink"}} if err := store.Create(ctx, key, obj, out, 0); err != nil { t.Fatalf("Set failed: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 20:08:59 UTC 2022 - 2.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
@Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. public class MultimapKeysTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(SEVERAL) public void testKeys() { resetContainer( Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k0(), v1()), Helpers.mapEntry(k1(), v0())); Multiset<K> keys = multimap().keys(); assertEquals(2, keys.count(k0()));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go
if d := cmp.Diff(tt.want, got); d != "" { t.Fatalf("EncryptionConfiguration validation results mismatch (-want +got):\n%s", d) } }) } } func TestKey(t *testing.T) { root := field.NewPath("resources") path := root.Index(0).Child("provider").Index(0).Child("key").Index(0) testCases := []struct { desc string in apiserver.Key want field.ErrorList
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 33.7K bytes - Viewed (0) -
src/math/all_test.go
} } for i := 0; i < len(vfy0SC); i++ { if f := Y0(vfy0SC[i]); !alike(y0SC[i], f) { t.Errorf("Y0(%g) = %g, want %g", vfy0SC[i], f, y0SC[i]) } } } func TestY1(t *testing.T) { for i := 0; i < len(vf); i++ { a := Abs(vf[i]) if f := Y1(a); !soclose(y1[i], f, 2e-14) { t.Errorf("Y1(%g) = %g, want %g", a, f, y1[i]) } } for i := 0; i < len(vfy0SC); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0)