Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for new (0.2 sec)

  1. src/bufio/bufio_test.go

    					t.Errorf("want=%q", data[0:len(written)])
    					t.Errorf("have=%q", written)
    				}
    			}
    		}
    	}
    }
    
    func TestWriterAppend(t *testing.T) {
    	got := new(bytes.Buffer)
    	var want []byte
    	rn := rand.New(rand.NewSource(0))
    	w := NewWriterSize(got, 64)
    	for i := 0; i < 100; i++ {
    		// Obtain a buffer to append to.
    		b := w.AvailableBuffer()
    		if w.Available() != cap(b) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	VADDPS.BCST 2032(DX)(AX*2), Z1, Z29  // 6261745858ac42f0070000
    	// Forced EVEX encoding due to suffixes.
    	VADDPD.BCST 2032(DX), X0, X0 // 62f1fd185882f0070000
    	VADDPD.BCST 2032(DX), Y0, Y0 // 62f1fd385882f0070000
    	// Test new Z-cases one-by-one.
    	//
    	// Zevex_i_r_k_rm.
    	VCVTPS2PH $1, Z2, K5, Y21 // 62b37d4d1dd501
    	VCVTPS2PH $2, Z21, K4, Y2 // 62e37d4c1dea02
    	// Zevex_i_r_rm.
    	VCVTPS2PH $1, Z2, Y21 // 62b37d481dd501
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 11 18:32:50 GMT 2023
    - 57.6K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    	return messWith("crc32-not-streamed.zip", func(b []byte) {
    		// Corrupt foo.txt's final crc32 byte, in both
    		// the file header and TOC. (0x7e -> 0x7f)
    		b[0x11]++
    		b[0x9d]++
    
    		// TODO(bradfitz): add a new test that only corrupts
    		// one of these values, and verify that that's also an
    		// error. Currently, the reader code doesn't verify the
    		// fileheader and TOC's crc32 match if they're both
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    				i = 0
    			}
    			continue
    		}
    		arg[i] = r
    		i++
    	}
    	if quoted || i > 0 {
    		args = append(args, string(arg[:i]))
    	}
    	if quote != 0 {
    		err = errors.New("unclosed quote")
    	} else if escaped {
    		err = errors.New("unfinished escaping")
    	}
    	return args, err
    }
    
    // Translate rewrites f.AST, the original Go input, to remove
    // references to the imported package C, replacing them with
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    		in = in[:len(tt.in)]
    		out := Replace(in, []byte(tt.old), []byte(tt.new), tt.n)
    		if s := string(out); s != tt.out {
    			t.Errorf("Replace(%q, %q, %q, %d) = %q, want %q", tt.in, tt.old, tt.new, tt.n, s, tt.out)
    		}
    		if cap(in) == cap(out) && &in[:1][0] == &out[:1][0] {
    			t.Errorf("Replace(%q, %q, %q, %d) didn't copy", tt.in, tt.old, tt.new, tt.n)
    		}
    		if tt.n == -1 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top