- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 954 for badS (0.44 sec)
-
src/cmd/compile/internal/types2/mono_test.go
for i, good := range goods { if err := checkMono(t, good); err != nil { t.Errorf("%d: unexpected failure: %v", i, err) } } } func TestMonoBad(t *testing.T) { for i, bad := range bads { if err := checkMono(t, bad); err == nil { t.Errorf("%d: unexpected success", i) } else { t.Log(err) } } } var goods = []string{ "func F[T any](x T) { F(x) }",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
test/copy.go
for i = 0; i < out; i++ { if output8[i] != u8(i+13) { bad8("before8", i, length, in, out) return } } // copied part for ; i < out+n; i++ { if output8[i] != u8(i+in-out) { bad8("copied8", i, length, in, out) return } } // after for ; i < len(output8); i++ { if output8[i] != u8(i+13) { bad8("after8", i, length, in, out) return } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 6.6K bytes - Viewed (0) -
src/go/types/mono_test.go
for i, good := range goods { if err := checkMono(t, good); err != nil { t.Errorf("%d: unexpected failure: %v", i, err) } } } func TestMonoBad(t *testing.T) { for i, bad := range bads { if err := checkMono(t, bad); err == nil { t.Errorf("%d: unexpected success", i) } else { t.Log(err) } } } var goods = []string{ "func F[T any](x T) { F(x) }",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 28 17:58:07 UTC 2023 - 2.5K bytes - Viewed (0) -
src/go/build/build_test.go
func TestIssue56509(t *testing.T) { // The directory testdata/bads contains a .s file that has an unparsable // comment. (go/build parses initial comments in non-go files looking for // //go:build or //+go build comments). p, err := ImportDir("testdata/bads", 0) if err == nil { t.Fatalf("could not import testdata/bads: %v", err) } if len(p.InvalidGoFiles) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0) -
test/convlit.go
// implicit conversions merit scrutiny var s string var bad1 string = 1 // ERROR "conver|incompatible|invalid|cannot" var bad2 = s + 1 // ERROR "conver|incompatible|invalid|cannot" var bad3 = s + 'a' // ERROR "conver|incompatible|invalid|cannot" var bad4 = "a" + 1 // ERROR "literals|incompatible|convert|invalid" var bad5 = "a" + 'a' // ERROR "literals|incompatible|convert|invalid" var bad6 int = 1.5 // ERROR "convert|truncate"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 23 05:11:09 UTC 2021 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractCaseVfsRelativePathTest.groovy
} static final List<List<String>> CHILDREN_LISTS = [ ["bAdA"], ["bAdA", "BaDb"], ["bAdA", "BaDb", "Badc"], ["bAdA/something", "BaDb/other", "Badc/different"], ["bad/mine", "c/other", "ab/second"], ["Bad/mine", "c/other", "aB/second"], ["Bad/mine", "c/other", "AB/second"], ["Bad/mine", "cA/other", "AB/second"], ["c", "b/something", "a/very/long/suffix"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 9.3K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/CaseSensitiveVfsRelativePathTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 3.4K bytes - Viewed (0) -
test/fixedbugs/issue9006.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 520 bytes - Viewed (0) -
test/fixedbugs/issue8606b.go
(*reflect.StringHeader)(unsafe.Pointer(&bad2)).Data = uintptr(unsafe.Pointer(&b[1])) for _, test := range []struct { a, b interface{} }{ {SI{s: bad1, i: 1}, SI{s: bad2, i: 2}}, {SS{s: bad1, t: "a"}, SS{s: bad2, t: "aa"}}, {SS{s: "a", t: bad1}, SS{s: "b", t: bad2}}, // This one would panic because the length of both strings match, and we check // the body of the bad strings before the body of the good strings.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.9K bytes - Viewed (0)