- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestPerm (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/rand/rand_test.go
// 0 is invalid. for _, max := range []int{1, 2, 10, 123} { inrange := Intn(max) if inrange < 0 || inrange > max { t.Errorf("%v out of range (0,%v)", inrange, max) } } } func TestPerm(t *testing.T) { Seed(5) rand.Seed(5) for i := 1; i < 20; i++ { actual := Perm(i) expected := rand.Perm(i) for j := 0; j < i; j++ { if actual[j] != expected[j] {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 07 13:45:36 UTC 2021 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeterm_test.go
"~string int ~string int", "myInt int myInt int", "~string ~int ~string ~int", "myInt ~int ~int ∅", } { args := split(test, 4) x := testTerm(args[0]) y := testTerm(args[1]) want1 := testTerm(args[2]) want2 := testTerm(args[3]) if got1, got2 := x.union(y); !got1.equal(want1) || !got2.equal(want2) { t.Errorf("%v.union(%v) = %v, %v; want %v, %v", x, y, got1, got2, want1, want2) } }
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/go/types/typeterm_test.go
"~string int ~string int", "myInt int myInt int", "~string ~int ~string ~int", "myInt ~int ~int ∅", } { args := split(test, 4) x := testTerm(args[0]) y := testTerm(args[1]) want1 := testTerm(args[2]) want2 := testTerm(args[3]) if got1, got2 := x.union(y); !got1.equal(want1) || !got2.equal(want2) { t.Errorf("%v.union(%v) = %v, %v; want %v, %v", x, y, got1, got2, want1, want2) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.2K bytes - Viewed (0) -
src/go/types/termlist_test.go
func maketl(s string) termlist { s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "|") r := make(termlist, len(names)) for i, n := range names { r[i] = testTerm(n) } return r } func TestTermlistAll(t *testing.T) { if !allTermlist.isAll() { t.Errorf("allTermlist is not the set of all types") } } func TestTermlistString(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 7.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/termlist_test.go
func maketl(s string) termlist { s = strings.ReplaceAll(s, " ", "") names := strings.Split(s, "|") r := make(termlist, len(names)) for i, n := range names { r[i] = testTerm(n) } return r } func TestTermlistAll(t *testing.T) { if !allTermlist.isAll() { t.Errorf("allTermlist is not the set of all types") } } func TestTermlistString(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 07 21:37:14 UTC 2022 - 7.2K bytes - Viewed (0)