Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for TestCopy (0.13 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

        result = CharStreams.asWriter(secretlyAWriter);
        assertSame(secretlyAWriter, result);
      }
    
      // CharStreams.copy has type specific optimizations for Readers,StringBuilders and Writers
    
      public void testCopy() throws IOException {
        StringBuilder builder = new StringBuilder();
        long copied =
            CharStreams.copy(
                wrapAsGenericReadable(new StringReader(ASCII)), wrapAsGenericAppendable(builder));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharStreamsTest.java

        result = CharStreams.asWriter(secretlyAWriter);
        assertSame(secretlyAWriter, result);
      }
    
      // CharStreams.copy has type specific optimizations for Readers,StringBuilders and Writers
    
      public void testCopy() throws IOException {
        StringBuilder builder = new StringBuilder();
        long copied =
            CharStreams.copy(
                wrapAsGenericReadable(new StringReader(ASCII)), wrapAsGenericAppendable(builder));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int i = 0; i < 100; i++) {
          Object o = new Object();
          bf.put(o);
          assertTrue(bf.mightContain(o));
          assertTrue(bf.apply(o));
        }
      }
    
      public void testCopy() {
        BloomFilter<String> original = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        BloomFilter<String> copy = original.copy();
        assertNotSame(original, copy);
        assertEquals(original, copy);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/copy_test.go

    	var a [7]byte
    	t7 := [7]byte{7, 8, 9, 10, 11, 12, 13}
    	tu7copy_ssa(true, t7, &a)
    	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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 150.2K bytes
    - Viewed (0)
  6. src/io/io_test.go

    	WriterTo   // conflicts with and hides bytes.Buffer's WriterTo.
    }
    
    // Simple tests, primarily to verify the ReadFrom and WriteTo callouts inside Copy, CopyBuffer and CopyN.
    
    func TestCopy(t *testing.T) {
    	rb := new(Buffer)
    	wb := new(Buffer)
    	rb.WriteString("hello, world.")
    	Copy(wb, rb)
    	if wb.String() != "hello, world." {
    		t.Errorf("Copy 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)
  7. src/reflect/all_test.go

    		ax := ValueOf(struct{ x []int }{test.orig}).Field(0)
    		shouldPanic("using unexported field", func() { Append(ax, e0...) })
    		shouldPanic("using unexported field", func() { AppendSlice(ax, e1) })
    	}
    }
    
    func TestCopy(t *testing.T) {
    	a := []int{1, 2, 3, 4, 10, 9, 8, 7}
    	b := []int{11, 22, 33, 44, 1010, 99, 88, 77, 66, 55, 44}
    	c := []int{11, 22, 33, 44, 1010, 99, 88, 77, 66, 55, 44}
    	for i := 0; i < len(b); i++ {
    		if b[i] != c[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top