- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 3,295 for GOT (0.02 sec)
-
test/typeparam/list.go
i2 := &_List[int]{i3, 3} i1 := &_List[int]{i2, 2} if got, want := i1.Largest(), 3; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } b3 := &_List[byte]{nil, byte(1)} b2 := &_List[byte]{b3, byte(3)} b1 := &_List[byte]{b2, byte(2)} if got, want := b1.Largest(), byte(3); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } f3 := &_List[float64]{nil, 13.5}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Dec 03 17:08:51 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/controller/certificates/approver/sarapprove_test.go
if got, expected := a.Verb, "update"; got != expected { t.Errorf("got: %v, expected: %v", got, expected) } if got, expected := a.Resource, (schema.GroupVersionResource{Group: "certificates.k8s.io", Version: "v1", Resource: "certificatesigningrequests"}); got != expected { t.Errorf("got: %v, expected: %v", got, expected) } if got, expected := a.Subresource, "approval"; got != expected {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 02 21:12:04 UTC 2022 - 7.7K bytes - Viewed (0) -
test/typeparam/double.go
want := MySlice{2, 4, 6} got := _DoubleElems[MySlice, int](arg) if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } // constraint type inference got = _DoubleElems[MySlice](arg) if !reflect.DeepEqual(got, want) { panic(fmt.Sprintf("got %s, want %s", got, want)) } got = _DoubleElems(arg) if !reflect.DeepEqual(got, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.5K bytes - Viewed (0) -
src/log/slog/value_test.go
} // Test Resolve. got = v.Resolve().Any() if got != want { t.Errorf("got %#v, want %#v", got, want) } // Test Resolve max iteration. r.v = AnyValue(r) // create a cycle got = AnyValue(r).Resolve().Any() if _, ok := got.(error); !ok { t.Errorf("expected error, got %T", got) } // Groups are not recursively resolved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 6.9K bytes - Viewed (0) -
src/cmd/internal/src/xpos_test.go
} const wantLen = 4 if len(tab.baseList) != wantLen { t.Errorf("got table length %d; want %d", len(tab.baseList), wantLen) } if got := tab.XPos(NoPos); got != NoXPos { t.Errorf("XPos(NoPos): got %v; want %v", got, NoXPos) } if tab.baseList[0] != nil || tab.indexMap[nil] != 0 { t.Errorf("nil base not at index 0") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 2.7K bytes - Viewed (0) -
src/net/netip/uint128_test.go
{uint128{1, 1}, sub1, uint128{1, 0}}, } for _, tt := range tests { var got uint128 switch tt.op { case add1: got = tt.in.addOne() case sub1: got = tt.in.subOne() default: panic("bogus op") } if got != tt.want { t.Errorf("%v add %d = %v; want %v", tt.in, tt.op, got, tt.want) } } } func TestBitsSetFrom(t *testing.T) { tests := []struct { bit uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 01:28:01 UTC 2021 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeterm_test.go
args := split(test, 3) x := testTerm(args[0]) y := testTerm(args[1]) want := args[2] == "T" if got := x.equal(y); got != want { t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want) } // equal is symmetric x, y = y, x if got := x.equal(y); got != want { t.Errorf("%v.equal(%v) = %v; want %v", x, y, got, want) } } } func TestTermUnion(t *testing.T) { for _, test := range []string{ "∅ ∅ ∅ ∅",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 20 23:30:58 UTC 2021 - 5.1K bytes - Viewed (0) -
src/math/bits/bits_test.go
} if UintSize == 32 { got = OnesCount(uint(x)) if got != want { t.Fatalf("OnesCount(%#08x) == %d; want %d", uint32(x), got, want) } } } if x <= 1<<64-1 { got := OnesCount64(uint64(x)) if got != want { t.Fatalf("OnesCount64(%#016x) == %d; want %d", x, got, want) } if UintSize == 64 { got = OnesCount(uint(x)) if got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 22 20:11:06 UTC 2020 - 32.5K bytes - Viewed (0) -
src/internal/saferio/io_test.go
sr := io.NewSectionReader(bytes.NewReader(input), 0, 0) got, err := ReadDataAt(sr, 0, 0) if err != nil { t.Fatal(err) } if len(got) > 0 { t.Errorf("got %d bytes, expected 0", len(got)) } }) } func TestSliceCap(t *testing.T) { t.Run("small", func(t *testing.T) { c := SliceCap[int](10) if c != 10 { t.Errorf("got capacity %d, want %d", c, 10) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.1K bytes - Viewed (0) -
src/slices/slices_test.go
{x: []int{0, 1, 2}, count: 4, want: []int{0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2}}, } { if got := Repeat(tc.x, tc.count); got == nil || cap(got) != cap(tc.want) || !Equal(got, tc.want) { t.Errorf("Repeat(%v, %v): got: %v, want: %v, (got == nil): %v, cap(got): %v, cap(want): %v", tc.x, tc.count, got, tc.want, got == nil, cap(got), cap(tc.want)) } } // big slices for _, tc := range []struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0)