- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for testCopy3 (0.26 sec)
-
src/cmd/compile/internal/test/testdata/gen/copyGen.go
fmt.Fprintf(w, " }\n") fmt.Fprintf(w, "}\n") } // boilerplate at end fmt.Fprintf(w, "func TestCopy(t *testing.T) {\n") for _, s := range sizes { fmt.Fprintf(w, " testCopy%d(t)\n", s) } for _, s := range usizes { fmt.Fprintf(w, " testUnalignedCopy%d(t)\n", s) } fmt.Fprintf(w, "}\n") // gofmt result b := w.Bytes()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 3.6K bytes - Viewed (0) -
test/typeparam/setsimp.dir/main.go
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) { panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", s1, s2)) } s1.Add(1) 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/typeparam/mapsimp.dir/main.go
} // Comparing NaN for equality is expected to fail. mf := map[int]float64{1: 0, 2: math.NaN()} if a.Equal(mf, mf) { panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", mf, mf)) } } func TestCopy() { m2 := a.Copy(m1) if !a.Equal(m1, m2) { panic(fmt.Sprintf("a.Copy(%v) = %v, want %v", m1, m2, m1)) } m2[16] = 32 if a.Equal(m1, m2) { panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", m1, m2))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 3.6K bytes - Viewed (0) -
test/typeparam/slices.go
func TestAppend() { s := []int{1, 2, 3} s = _Append(s, 4, 5, 6) want := []int{1, 2, 3, 4, 5, 6} if !_Equal(s, want) { panic(fmt.Sprintf("after _Append got %v, want %v", s, want)) } } func TestCopy() { s1 := []int{1, 2, 3} s2 := []int{4, 5} if got := _Copy(s1, s2); got != 2 { panic(fmt.Sprintf("_Copy returned %d, want 2", got)) } want := []int{4, 5, 3} if !_Equal(s1, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
test/typeparam/maps.go
} // Comparing NaN for equality is expected to fail. mf := map[int]float64{1: 0, 2: math.NaN()} if _Equal(mf, mf) { panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", mf, mf)) } } func TestCopy() { m2 := _Copy(m1) if !_Equal(m1, m2) { panic(fmt.Sprintf("_Copy(%v) = %v, want %v", m1, m2, m1)) } m2[16] = 32 if _Equal(m1, m2) { panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", m1, m2))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
test/typeparam/sets.go
if got := s1.Len(); got != 2 { panic(fmt.Sprintf("(%v).Len() == %d, want 2", s1, got)) } if _Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", s1, s2)) } } func TestCopy() { s1 := _Make[float64]() s1.Add(0) s2 := s1.Copy() if !_Equal(s1, s2) { panic(fmt.Sprintf("_Equal(%v, %v) = false, want true", s1, s2)) } s1.Add(1) if _Equal(s1, s2) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.7K bytes - Viewed (0) -
platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy
def testImplHolder = configurations.create("uasdf") def testCopy = configurations.testImplementation.copy() configurations.add(testCopy) testImplHolder.extendsFrom(testCopy) task assertCopyCanBeResolved { def resolved = testImplHolder doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 13 20:36:32 UTC 2023 - 35.8K bytes - Viewed (0) -
src/io/io_test.go
r, w := zeroErrReader{err: er}, errWriter{err: ew} n, err := Copy(w, r) if n != 0 || err != ew { t.Errorf("Copy(zeroErrReader, errWriter) = %d, %v; want 0, writeError", n, err) } } func TestCopyN(t *testing.T) { rb := new(Buffer) wb := new(Buffer) rb.WriteString("hello, world.") CopyN(wb, rb, 5) if wb.String() != "hello" { t.Errorf("CopyN did not work properly") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
// that depends on ptest. And so on, up the dependency tree. testCopy := map[*Package]*Package{preal: ptest} for _, p := range PackageList([]*Package{pmain}) { if p == preal { continue } // Copy on write. didSplit := p == pmain || p == pxtest || p == ptest split := func() { if didSplit { return } didSplit = true if testCopy[p] != nil { panic("recompileForTest loop") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/maps/maps_test.go
} } func TestCloneNil(t *testing.T) { var m1 map[string]int mc := Clone(m1) if mc != nil { t.Errorf("Clone(%v) = %v, want %v", m1, mc, m1) } } func TestCopy(t *testing.T) { mc := Clone(m1) Copy(mc, mc) if !Equal(mc, m1) { t.Errorf("Copy(%v, %v) = %v, want %v", m1, m1, mc, m1) } Copy(mc, map[int]int{16: 32})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0)