Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Nunes (0.18 sec)

  1. src/bytes/bytes_test.go

    		}
    		if !Equal(actual, tc.out) {
    			t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out)
    		}
    	}
    }
    
    func tenRunes(r rune) string {
    	runes := make([]rune, 10)
    	for i := range runes {
    		runes[i] = r
    	}
    	return string(runes)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	const step = 13
    	if r >= 'a' && r <= 'z' {
    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)
  2. src/bufio/bufio_test.go

    			t.Errorf("#%d: got error %v; want EOF", rno, err)
    		}
    	}
    }
    
    // Test that UnreadRune fails if the preceding operation was not a ReadRune.
    func TestUnreadRuneError(t *testing.T) {
    	buf := make([]byte, 3) // All runes in this test are 3 bytes long
    	r := NewReader(&StringReader{data: []string{"日本語日本語日本語"}})
    	if r.UnreadRune() == nil {
    		t.Error("expected error on UnreadRune from fresh buffer")
    	}
    	_, _, err := r.ReadRune()
    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)
  3. src/archive/zip/reader_test.go

    		File: []ZipTestFile{
    			{
    				Name:    "世界",
    				Content: []byte{},
    				Mode:    0644,
    				// Name is valid UTF-8, but format does not have UTF-8 flag set.
    				// We don't do UTF-8 detection for multi-byte runes due to
    				// false-positives with other encodings (e.g., Shift-JIS).
    				// Format says encoding is not UTF-8, so we trust it.
    				NonUTF8:  true,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 0, timeZone(-8*time.Hour)),
    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)
Back to top