Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for abcd (0.27 sec)

  1. src/bufio/bufio_test.go

    	buf = NewReaderSize(dataAndEOFReader("abcd"), 32)
    	if s, err := buf.Peek(2); string(s) != "ab" || err != nil {
    		t.Errorf(`Peek(2) on "abcd", EOF = %q, %v; want "ab", nil`, string(s), err)
    	}
    	if s, err := buf.Peek(4); string(s) != "abcd" || err != nil {
    		t.Errorf(`Peek(4) on "abcd", EOF = %q, %v; want "abcd", nil`, string(s), err)
    	}
    	if n, err := buf.Read(p[0:5]); string(p[0:n]) != "abcd" || err != nil {
    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/pseudo_test.go

    		{"DATA", "·D(SB)/5,$0.0", "bad float size for DATA argument: 5"},
    		{"DATA", "·E(SB)/4,$·A(SB)", "bad addr size for DATA argument: 4"},
    		{"DATA", "·F(SB)/8,$·A(SB)", ""},
    		{"DATA", "·G(SB)/5,$\"abcde\"", ""},
    		{"GLOBL", "", "expect two or three operands for GLOBL"},
    		{"GLOBL", "0,1", "GLOBL symbol \"<erroneous symbol>\" must be a symbol(SB)"},
    		{"GLOBL", "@B(SB), 0", "expected '(', found B"}, // Issue 23580.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/mips64.s

    //	}
    	MOVW	$1, R1
    	MOVW	$foo(SB), R1
    	MOVV	$1, R1
    	MOVV	$foo(SB), R1
    
    //
    // floating point operate
    //
    //	LFCONV freg ',' freg
    //	{
    //		outcode(int($1), &$2, 0, &$4);
    //	}
    	ABSD	F1, F2
    
    //	LFADD freg ',' freg
    //	{
    //		outcode(int($1), &$2, 0, &$4);
    //	}
    	ADDD	F1, F2
    
    //	LFADD freg ',' freg ',' freg
    //	{
    //		outcode(int($1), &$2, int($4.Reg), &$6);
    //	}
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    		{"19 path=/etc/hosts\n", "", "path", "/etc/hosts", true},
    		{"210 path=" + longName + "\nabc", "abc", "path", longName, true},
    		{"110 path=" + medName + "\n", "", "path", medName, true},
    		{"9 foo=ba\n", "", "foo", "ba", true},
    		{"11 foo=bar\n\x00", "\x00", "foo", "bar", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    string_lit             = raw_string_lit | interpreted_string_lit .
    raw_string_lit         = "`" { unicode_char | newline } "`" .
    interpreted_string_lit = `"` { unicode_value | byte_value } `"` .
    </pre>
    
    <pre>
    `abc`                // same as "abc"
    `\n
    \n`                  // same as "\\n\n\\n"
    "\n"
    "\""                 // same as `"`
    "Hello, world!\n"
    "日本語"
    "\u65e5本\U00008a9e"
    "\xff\u00FF"
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    	s   string
    	sep string
    	n   int
    	a   []string
    }
    
    var splittests = []SplitTest{
    	{"", "", -1, []string{}},
    	{abcd, "a", 0, nil},
    	{abcd, "", 2, []string{"a", "bcd"}},
    	{abcd, "a", -1, []string{"", "bcd"}},
    	{abcd, "z", -1, []string{"abcd"}},
    	{abcd, "", -1, []string{"a", "b", "c", "d"}},
    	{commas, ",", -1, []string{"1", "2", "3", "4"}},
    	{dots, "...", -1, []string{"1", ".2", ".3", ".4"}},
    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)
  7. src/archive/tar/writer_test.go

    		tests: []testFnc{
    			testReadFrom{fileOps{"ab", int64(3), "cde"}, 7, errMissData},
    			testRemaining{1, 0},
    		},
    	}, {
    		maker: makeSparse{makeReg{6, "abcde"}, sparseHoles{{2, 3}}, 8},
    		tests: []testFnc{
    			testReadFrom{fileOps{"ab", int64(3), "cde"}, 8, errUnrefData},
    			testRemaining{0, 1},
    		},
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/archive/zip/zip_test.go

    	const keep = 10
    	ss := &suffixSaver{keep: keep}
    	ss.Write([]byte("abc"))
    	if got := string(ss.Suffix()); got != "abc" {
    		t.Errorf("got = %q; want abc", got)
    	}
    	ss.Write([]byte("defghijklmno"))
    	if got := string(ss.Suffix()); got != "fghijklmno" {
    		t.Errorf("got = %q; want fghijklmno", got)
    	}
    	if got, want := ss.Size(), int64(len("abc")+len("defghijklmno")); got != want {
    		t.Errorf("Size = %d; want %d", got, want)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  9. src/bytes/reader_test.go

    		t.Errorf("behavior differs: with = %#v; without: %#v", with, withOut)
    	}
    }
    
    // tests that Len is affected by reads, but Size is not.
    func TestReaderLenSize(t *testing.T) {
    	r := NewReader([]byte("abc"))
    	io.CopyN(io.Discard, r, 1)
    	if r.Len() != 2 {
    		t.Errorf("Len = %d; want 2", r.Len())
    	}
    	if r.Size() != 3 {
    		t.Errorf("Size = %d; want 3", r.Size())
    	}
    }
    
    func TestReaderReset(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  10. doc/go_spec.html

    string_lit             = raw_string_lit | interpreted_string_lit .
    raw_string_lit         = "`" { unicode_char | newline } "`" .
    interpreted_string_lit = `"` { unicode_value | byte_value } `"` .
    </pre>
    
    <pre>
    `abc`                // same as "abc"
    `\n
    \n`                  // same as "\\n\n\\n"
    "\n"
    "\""                 // same as `"`
    "Hello, world!\n"
    "日本語"
    "\u65e5本\U00008a9e"
    "\xff\u00FF"
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top