- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 385 for S1 (0.02 sec)
-
test/typeparam/setsimp.dir/main.go
panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2)) } s1.Add("hello") s1.Add("world") if got := s1.Len(); got != 2 { panic(fmt.Sprintf("(%v).Len() == %d, want 2", s1, got)) } if a.Equal(s1, s2) { panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", s1, s2)) } } func TestCopy() { s1 := a.Make[float64]() s1.Add(0) s2 := s1.Copy() if !a.Equal(s1, s2) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 3.2K bytes - Viewed (0) -
test/sizeof.go
panic("unsafe.Offsetof(s1.G) != 48") case unsafe.Offsetof(s1.H) != 56: panic("unsafe.Offsetof(s1.H) != 56") case unsafe.Offsetof(s1.S1) != 64: panic("unsafe.Offsetof(s1.S1) != 64") case unsafe.Offsetof(s1.S1.S2.S3.S4.S5.S6.S7.S8.S1.S2) != 8: panic("unsafe.Offsetof(s1.S1.S2.S3.S4.S5.S6.S7.S8.S1.S2) != 8") } } func testNotEmbedded() { type T2 struct { B int32 C int32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.9K bytes - Viewed (0) -
test/typeparam/slices.go
} return i } func TestEqual() { s1 := []int{1, 2, 3} if !_Equal(s1, s1) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s1, s1)) } s2 := []int{1, 2, 3} if !_Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s1, s2)) } s2 = append(s2, 4) if _Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", s1, s2)) } s3 := []float64{1, 2, math.NaN()}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int.go
// s2.SymmetricDifference(s1) = {a3, a4, a5} func (s1 Int) SymmetricDifference(s2 Int) Int { return Int(cast(s1).SymmetricDifference(cast(s2))) } // Union returns a new set which includes items in either s1 or s2. // For example: // s1 = {a1, a2} // s2 = {a3, a4} // s1.Union(s2) = {a1, a2, a3, a4} // s2.Union(s1) = {a1, a2, a3, a4} func (s1 Int) Union(s2 Int) Int { return Int(cast(s1).Union(cast(s2))) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.8K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51229.go
func f07[S2 ~[]E2, E2 ~byte, S1 ~[]E1, E1 ~byte](S1, S2) {} func f08[S1 ~[]E1, E2 ~byte, S2 ~[]E2, E1 ~byte](S1, S2) {} func f09[E2 ~byte, S1 ~[]E1, S2 ~[]E2, E1 ~byte](S1, S2) {} func f10[S2 ~[]E2, S1 ~[]E1, E2 ~byte, E1 ~byte](S1, S2) {} func f11[S1 ~[]E1, S2 ~[]E2, E2 ~byte, E1 ~byte](S1, S2) {} func f12[S1 ~[]E1, E1 ~byte, E2 ~byte, S2 ~[]E2](S1, S2) {} func f13[E1 ~byte, S1 ~[]E1, E2 ~byte, S2 ~[]E2](S1, S2) {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go
// s2.SymmetricDifference(s1) = {a3, a4, a5} func (s1 Int32) SymmetricDifference(s2 Int32) Int32 { return Int32(cast(s1).SymmetricDifference(cast(s2))) } // Union returns a new set which includes items in either s1 or s2. // For example: // s1 = {a1, a2} // s2 = {a3, a4} // s1.Union(s2) = {a1, a2, a3, a4} // s2.Union(s1) = {a1, a2, a3, a4} func (s1 Int32) Union(s2 Int32) Int32 { return Int32(cast(s1).Union(cast(s2))) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
test/typeparam/sets.go
s1 := _Make[int]() s1.Add(1) s1.Add(2) s1.Add(3) s1.Add(4) tot := 0 s1.Iterate(func(i int) { tot += i }) if tot != 10 { panic(fmt.Sprintf("total of %v == %d, want 10", s1, tot)) } } func TestFilter() { s1 := _Make[int]() s1.Add(1) s1.Add(2) s1.Add(3) s1.Filter(func(v int) bool { return v%2 == 0 }) if vals, want := s1.Values(), []int{2}; !_SliceEqual(vals, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.7K bytes - Viewed (0) -
test/ken/ptrvar.go
func main() { var x int; var s1 *x2; var s2 *struct { a,b,c int; d x2; }; s1 = &g1; s2 = &g2; s1.a = 1; s1.b = 2; s1.c = 3; s1.d = 5; s2.a = 7; s2.b = 11; s2.c = 13; s2.d.a = 17; s2.d.b = 19; s2.d.c = 23; s2.d.d = 20; if(s2.d.c != 23) { panic(1); } if(g2.d.c != 23) { panic(2); } x = s1.a + s1.b + s1.c + s1.d + s2.a + s2.b +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 772 bytes - Viewed (0) -
test/ken/strvar.go
var g1 x2; var g2 struct { a,b,c int; d x2; }; func main() { var x int; var s1 *x2; var s2 *struct { a,b,c int; d x2; }; var s3 struct { a,b,c int; d x2; }; s1 = &g1; s2 = &g2; s1.a = 1; s1.b = 2; s1.c = 3; s1.d = 5; if(s1.c != 3) { panic(s1.c); } if(g1.c != 3) { panic(g1.c); } s2.a = 7; s2.b = 11; s2.c = 13; s2.d.a = 17; s2.d.b = 19;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 1.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiItemTest.java
assertFalse(kuromojiItem1.equals(new KuromojiItem(1, "t1", "s1", "R1", "p1"))); assertFalse(kuromojiItem1.equals(new KuromojiItem(1, "t1", "s1", "r1", "P1"))); } public void test_toLineString() { assertEquals("t1,s1,r1,p1", new KuromojiItem(1, "t1", "s1", "r1", "p1").toLineString()); assertEquals("t\"\"1,s\"\"1,r\"\"1,p\"\"1", new KuromojiItem(1, "t\"1", "s\"1", "r\"1", "p\"1").toLineString());
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3K bytes - Viewed (0)