Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for testCopy8 (0.23 sec)

  1. src/cmd/compile/internal/test/testdata/copy_test.go

    	want7 := [7]byte{7, 8, 9, 10, 11, 12, 13}
    	if a != want7 {
    		t.Errorf("tu7copy got=%v, want %v\n", a, want7)
    	}
    }
    func TestCopy(t *testing.T) {
    	testCopy1(t)
    	testCopy2(t)
    	testCopy3(t)
    	testCopy4(t)
    	testCopy5(t)
    	testCopy6(t)
    	testCopy7(t)
    	testCopy8(t)
    	testCopy9(t)
    	testCopy10(t)
    	testCopy15(t)
    	testCopy16(t)
    	testCopy17(t)
    	testCopy23(t)
    	testCopy24(t)
    	testCopy25(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 150.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. test/typeparam/sliceimp.dir/main.go

    func TestAppend() {
    	s := []int{1, 2, 3}
    	s = a.Append(s, 4, 5, 6)
    	want := []int{1, 2, 3, 4, 5, 6}
    	if !a.Equal(s, want) {
    		panic(fmt.Sprintf("after a.Append got %v, want %v", s, want))
    	}
    }
    
    func TestCopy() {
    	s1 := []int{1, 2, 3}
    	s2 := []int{4, 5}
    	if got := a.Copy(s1, s2); got != 2 {
    		panic(fmt.Sprintf("a.Copy returned %d, want 2", got))
    	}
    	want := []int{4, 5, 3}
    	if !a.Equal(s1, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  6. pkg/file/file_test.go

    	}
    	m, _ := f.Stat()
    	// Mode should be copied
    	assert.Equal(t, m.Mode(), 0o750)
    
    	body, _ := io.ReadAll(f)
    	// Contents should be copied
    	assert.Equal(t, body, []byte("hello world"))
    }
    
    func TestCopy(t *testing.T) {
    	copyTest(t, Copy)
    }
    
    func TestAtomicCopy(t *testing.T) {
    	copyTest(t, AtomicCopy)
    }
    
    func TestAtomicWrite(t *testing.T) {
    	d := t.TempDir()
    	file := filepath.Join(d, "test")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 19:10:54 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top