- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,295 for GOT (0.33 sec)
-
operator/pkg/util/errs_test.go
t.Errorf("got: %s, want: %s", got, want) } errs = AppendErr(errs, fmt.Errorf("err1")) if got, want := errs.String(), "err1"; got != want { t.Errorf("got: %s, want: %s", got, want) } errs = AppendErr(errs, nil) errs = AppendErr(errs, fmt.Errorf("err2")) if got, want := errs.String(), "err1, err2"; got != want { t.Errorf("got: %s, want: %s", got, want) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/test/truncconst_test.go
const f52 = 1 + 1.0/(1<<52) const f53 = 1 + 1.0/(1<<53) if got := f52 - 1; got != f52want { t.Errorf("f52-1 = %g, want %g", got, f52want) } if got := float64(f52) - 1; got != f52want { t.Errorf("float64(f52)-1 = %g, want %g", got, f52want) } if got := f53 - 1; got != f53want { t.Errorf("f53-1 = %g, want %g", got, f53want) } if got := float64(f53) - 1; got != 0 { t.Errorf("float64(f53)-1 = %g, want 0", got) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/memcombine_test.go
} if got, want := t16.littleEndianLoad(), uint32(1+2<<16); got != want { t.Errorf("T16.littleEndianLoad got %x want %x\n", got, want) } t8 := T8{1, 2} if got, want := t8.bigEndianLoad(), uint16(1<<8+2); got != want { t.Errorf("T8.bigEndianLoad got %x want %x\n", got, want) } if got, want := t8.littleEndianLoad(), uint16(1+2<<8); got != want { t.Errorf("T8.littleEndianLoad got %x want %x\n", got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 30 18:35:50 UTC 2023 - 4.5K bytes - Viewed (0) -
test/typeparam/mincheck.dir/main.go
"fmt" ) func main() { const want = 2 if got := a.Min[int](2, 3); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Min(2, 3); got != want { panic(fmt.Sprintf("want %d, got %d", want, got)) } if got := a.Min[float64](3.5, 2.0); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Min(3.5, 2.0); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 04 19:07:27 UTC 2023 - 925 bytes - Viewed (0) -
test/typeparam/ifaceconv.go
} func main() { if got, want := f[int](7), 7; got != want { panic(fmt.Sprintf("got %d want %d", got, want)) } if got, want := fs[int](7), []int{7}; got.([]int)[0] != want[0] { panic(fmt.Sprintf("got %d want %d", got, want)) } if got, want := g[int](7), 7; got != want { panic(fmt.Sprintf("got %d want %d", got, want)) } if got, want := h[myInt](7).foo(), 8; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.7K bytes - Viewed (0) -
test/typeparam/listimp.dir/main.go
i2 := &a.List[int]{i3, 3} i1 := &a.List[int]{i2, 2} if got, want := i1.Largest(), 3; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } b3 := &a.List[byte]{nil, byte(1)} b2 := &a.List[byte]{b3, byte(3)} b1 := &a.List[byte]{b2, byte(2)} if got, want := b1.Largest(), byte(3); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } f3 := &a.List[float64]{nil, 13.5}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 1.4K bytes - Viewed (0) -
src/log/slog/level_test.go
{LevelDebug - 2, "DEBUG-2"}, } { got := test.in.String() if got != test.want { t.Errorf("%d: got %s, want %s", test.in, got, test.want) } } } func TestLevelVar(t *testing.T) { var al LevelVar if got, want := al.Level(), LevelInfo; got != want { t.Errorf("got %v, want %v", got, want) } al.Set(LevelWarn) if got, want := al.Level(), LevelWarn; got != want { t.Errorf("got %v, want %v", got, want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 20:44:14 UTC 2024 - 4K bytes - Viewed (0) -
src/cmd/go/internal/generate/generate_test.go
// First with newlines. got := g.split("//go:generate " + test.in + "\n") if !reflect.DeepEqual(got, test.out) { t.Errorf("split(%q): got %q expected %q", test.in, got, test.out) } // Then with CRLFs, thank you Windows. got = g.split("//go:generate " + test.in + "\r\n") if !reflect.DeepEqual(got, test.out) { t.Errorf("split(%q): got %q expected %q", test.in, got, test.out) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 20 14:09:12 UTC 2022 - 7.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/assert_test.go
} if got, ok := e2t2_ssa(s); ok || got != nil { t.Errorf("e2t2_ssa(s)=(%v, %v) want (%v, %v)", got, ok, nil, false) } } func testAssertI2T2(t *testing.T) { if got, ok := i2t2_ssa(u); !ok || got != u { t.Errorf("i2t2_ssa(u)=(%v, %v) want (%v, %v)", got, ok, u, true) } if got, ok := i2t2_ssa(s); ok || got != nil { t.Errorf("i2t2_ssa(s)=(%v, %v) want (%v, %v)", got, ok, nil, false) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/cmp_test.go
} func testCmp(t *testing.T) { if wanted, got := true, eq_ssa(6); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := false, eq_ssa(7); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := false, neq_ssa(6); wanted != got { t.Errorf("neq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := true, neq_ssa(7); wanted != got {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 903 bytes - Viewed (0)