- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 3,295 for GOT (0.08 sec)
-
test/typeparam/lockable.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 916 bytes - Viewed (0) -
test/typeparam/issue50417b.go
b1: "a", b2: "b", } if got, want := x.b2, "b"; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } x.b1 = "y" x.val = 5 return x } func main() { x := f[MyStruct]() if got, want := x.b1, "y"; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got, want := x.val, 5; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 09 21:26:42 UTC 2022 - 921 bytes - Viewed (0) -
src/syscall/js/js_test.go
} if got, want := js.Null().Type(), js.TypeNull; got != want { t.Errorf("got %s, want %s", got, want) } if got, want := js.ValueOf(true).Type(), js.TypeBoolean; got != want { t.Errorf("got %s, want %s", got, want) } if got, want := js.ValueOf(0).Type(), js.TypeNumber; got != want { t.Errorf("got %s, want %s", got, want) } if got, want := js.ValueOf(42).Type(), js.TypeNumber; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
test/typeparam/index.go
vec1 := []string{"ab", "cd", "ef"} if got := Index(vec1, "ef"); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } vec2 := []byte{'c', '6', '@'} if got := Index(vec2, '@'); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } vec3 := []*obj{&obj{2}, &obj{42}, &obj{1}} if got := Index(vec3, vec3[2]); got != want { panic(fmt.Sprintf("got %d, want %d", 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/cmd/compile/internal/test/intrinsics_test.go
} } } func TestBitLen16(t *testing.T) { for i := 0; i <= 16; i++ { got := bits.Len16(1 << i) want := i + 1 if want == 17 { want = 0 } if got != want { t.Errorf("Len16(1<<%d) = %d, want %d", i, got, want) } } } func TestBitLen8(t *testing.T) { for i := 0; i <= 8; i++ { got := bits.Len8(1 << i) want := i + 1 if want == 9 { want = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 18:33:02 UTC 2022 - 1.1K bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
} got := runTestProg(t, "testprogcgo", "CgoSignalDeadlock") want := "OK\n" if got != want { t.Fatalf("expected %q, but got:\n%s", want, got) } } func TestCgoTraceback(t *testing.T) { t.Parallel() got := runTestProg(t, "testprogcgo", "CgoTraceback") want := "OK\n" if got != want { t.Fatalf("expected %q, but got:\n%s", want, got) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/arith_test.go
t.Errorf("testBitwiseAnd failed, wanted %d got %d", want, got) } if want, got := uint32(1333785343), testBitwiseOr_ssa(a, b); want != got { t.Errorf("testBitwiseOr failed, wanted %d got %d", want, got) } if want, got := uint32(1295233564), testBitwiseXor_ssa(a, b); want != got { t.Errorf("testBitwiseXor failed, wanted %d got %d", want, got) } if want, got := int32(832), testBitwiseLsh_ssa(13, 4, 2); want != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:30:59 UTC 2023 - 43.5K bytes - Viewed (0) -
src/unicode/graphic_test.go
} } } func TestIsUpperLatin1(t *testing.T) { for i := rune(0); i <= MaxLatin1; i++ { got := IsUpper(i) want := Is(Upper, i) if got != want { t.Errorf("%U incorrect: got %t; want %t", i, got, want) } } } func TestIsLowerLatin1(t *testing.T) { for i := rune(0); i <= MaxLatin1; i++ { got := IsLower(i) want := Is(Lower, i) if got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/termlist_test.go
for _, want := range []string{ "∅", "𝓤", "int", "~int", "myInt", "∅ | ∅", "𝓤 | 𝓤", "∅ | 𝓤 | int", "∅ | 𝓤 | int | myInt", } { if got := maketl(want).String(); got != want { t.Errorf("(%v).String() == %v", want, got) } } } func TestTermlistIsEmpty(t *testing.T) { for test, want := range map[string]bool{ "∅": true, "∅ | ∅": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 07 21:37:14 UTC 2022 - 7.2K bytes - Viewed (0) -
utils/tests/utils.go
t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), expect, got) return } if valuer, ok := got.(driver.Valuer); ok { got, _ = valuer.Value() } if valuer, ok := expect.(driver.Valuer); ok { expect, _ = valuer.Value() } if got != nil { got = reflect.Indirect(reflect.ValueOf(got)).Interface() } if expect != nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Mar 10 09:21:56 UTC 2023 - 3.9K bytes - Viewed (0)