Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 3,295 for GOT (0.04 sec)

  1. test/typeparam/combine.go

    	gc := Combine(g1, g2, _NewPair[int, string])
    	if got, ok := gc(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    	gc2 := Combine2(g1, g2)
    	if got, ok := gc2(); ok {
    		panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok))
    	}
    
    	gc3 := Combine(g1, g3, _NewPair[int, string])
    	if got, ok := gc3(); !ok || got.A != 3 || got.B != "y" {
    		panic(fmt.Sprintf("got %v, %v, wanted {3, y}, true", got, ok))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/internal/pkgpath/pkgpath_test.go

    	for _, test := range symbolTests {
    		if got, want := toSymbolV1(test.input), test.v1; got != want {
    			t.Errorf("toSymbolV1(%q) = %q, want %q", test.input, got, want)
    		}
    	}
    }
    
    func TestV2(t *testing.T) {
    	for _, test := range symbolTests {
    		if got, want := toSymbolV2(test.input), test.v2; got != want {
    			t.Errorf("toSymbolV2(%q) = %q, want %q", test.input, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 18:26:59 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. test/typeparam/setsimp.dir/main.go

    func TestSet() {
    	s1 := a.Make[int]()
    	if got := s1.Len(); got != 0 {
    		panic(fmt.Sprintf("Len of empty set = %d, want 0", got))
    	}
    	s1.Add(1)
    	s1.Add(1)
    	s1.Add(1)
    	if got := s1.Len(); got != 1 {
    		panic(fmt.Sprintf("(%v).Len() == %d, want 1", s1, got))
    	}
    	s1.Add(2)
    	s1.Add(3)
    	s1.Add(4)
    	if got := s1.Len(); got != 4 {
    		panic(fmt.Sprintf("(%v).Len() == %d, want 4", s1, got))
    	}
    	if !s1.Contains(1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  4. src/os/user/user_test.go

    	}
    	if want.Username != got.Username {
    		t.Errorf("got Username=%q; want %q", got.Username, want.Username)
    	}
    	if want.Name != got.Name {
    		t.Errorf("got Name=%q; want %q", got.Name, want.Name)
    	}
    	if want.HomeDir != got.HomeDir {
    		t.Errorf("got HomeDir=%q; want %q", got.HomeDir, want.HomeDir)
    	}
    	if want.Gid != got.Gid {
    		t.Errorf("got Gid=%q; want %q", got.Gid, want.Gid)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 15:59:43 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tests/table_test.go

    		if err != nil {
    			t.Fatalf("failed to parse user unique, got error %v", err)
    		}
    
    		constraints := user.ParseUniqueConstraints()
    		if len(constraints) != 1 {
    			t.Fatalf("failed to find unique constraint, got %v", constraints)
    		}
    
    		for key := range constraints {
    			if len(key) != 63 {
    				t.Errorf("failed to find unique constraint, got %v", constraints)
    			}
    		}
    	})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. test/typeparam/issue47258.go

    	x++
    	return x
    }
    func main() {
    	if got, want := inc(int32(5)), int32(6); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    	if got, want := inc(float64(5)), float64(6.0); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    	if got, want := inc(complex64(5)), complex64(6.0); 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
    - 686 bytes
    - Viewed (0)
  7. test/fixedbugs/issue15175.go

    	failed := false
    	a6 := uint8(253)
    	if got := a6 >> 0; got != 253 {
    		fmt.Printf("uint8(253)>>0 = %v, wanted 253\n", got)
    		failed = true
    	}
    	if got := f1(0, 2, 1, 0, 0, 1, true); got != 255 {
    		fmt.Printf("f1(...) = %v, wanted 255\n", got)
    		failed = true
    	}
    	if got := f2(1); got != 242 {
    		fmt.Printf("f2(...) = %v, wanted 242\n", got)
    		failed = true
    	}
    	if got := f3(false, 0, 0); got != 254 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  8. operator/cmd/mesh/profile-dump_test.go

    					t.Error(err)
    				}
    			}
    
    			want, err := readFile(outPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !util.IsYAMLEqual(got, want) {
    				t.Errorf("profile-dump command(%s): got:\n%s\n\nwant:\n%s\nDiff:\n%s\n", tt.desc, got, want, util.YAMLDiff(got, want))
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 20 11:44:25 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/string_test.go

    		{10, 15, 'A', "Above"},
    	}
    
    	str := "BelowExactAbove"
    	for i, test := range tests {
    		if got := testInt64Index_ssa(str, test.i); got != test.b {
    			t.Errorf("#%d got %d wanted %d", i, got, test.b)
    		}
    		if got := testInt64Slice_ssa(str, test.i, test.j); got != test.s {
    			t.Errorf("#%d got %s wanted %s", i, got, test.s)
    		}
    	}
    }
    
    func testInt64IndexPanic(t *testing.T) {
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  10. src/go/types/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: Wed Apr 03 18:48:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top