Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 104 for xfdf (0.05 sec)

  1. src/net/http/cgi/integration_test.go

    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "jpg",
    			body:   "\xFF\xD8\xFF" + strings.Repeat("B", 1024),
    			wantCT: "image/jpeg",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			expectedMap := map[string]string{"_body": tt.body}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 18:42:44 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. test/literal.go

    	var c03 uint8 = '\377'
    	assert(c00 == 0, "c00")
    	assert(c01 == 7, "c01")
    	assert(c02 == 127, "c02")
    	assert(c03 == 255, "c03")
    
    	var cx0 uint8 = '\x00'
    	var cx1 uint8 = '\x0f'
    	var cx2 uint8 = '\xff'
    	assert(cx0 == 0, "cx0")
    	assert(cx1 == 15, "cx1")
    	assert(cx2 == 255, "cx2")
    
    	var cu0 uint16 = '\u1234'
    	var cu1 uint32 = '\U00101234'
    	assert(cu0 == 0x1234, "cu0")
    	assert(cu1 == 0x101234, "cu1")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  3. src/net/http/fcgi/fcgi_test.go

    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "jpg",
    			body:   "\xFF\xD8\xFF" + strings.Repeat("B", 1024),
    			wantCT: "image/jpeg",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			input := make([]byte, len(streamFullRequestStdin))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/mime/quotedprintable/reader_test.go

    		{in: " A B =\n C ", want: " A B  C"}, // lax. treating LF as CRLF
    		{in: "foo=\nbar", want: "foobar"},
    		{in: "foo\x00bar", want: "foo", err: "quotedprintable: invalid unescaped byte 0x00 in body"},
    		{in: "foo bar\xff", want: "foo bar\xff"},
    
    		// Equal sign.
    		{in: "=3D30\n", want: "=30\n"},
    		{in: "=00=FF0=\n", want: "\x00\xff0"},
    
    		// Trailing whitespace
    		{in: "foo  \n", want: "foo\n"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. src/text/scanner/scanner_test.go

    	testError(t, "\x80", "<input>:1:1", "invalid UTF-8 encoding", utf8.RuneError)
    	testError(t, "\xff", "<input>:1:1", "invalid UTF-8 encoding", utf8.RuneError)
    
    	testError(t, "a\x00", "<input>:1:2", "invalid character NUL", Ident)
    	testError(t, "ab\x80", "<input>:1:3", "invalid UTF-8 encoding", Ident)
    	testError(t, "abc\xff", "<input>:1:4", "invalid UTF-8 encoding", Ident)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  6. src/compress/flate/flate_test.go

    				t.Errorf("#%d (%s):\ngot  %q\nwant %q", i, tc.desc, got, tc.want)
    			}
    
    		}
    	}
    }
    
    func TestTruncatedStreams(t *testing.T) {
    	const data = "\x00\f\x00\xf3\xffhello, world\x01\x00\x00\xff\xff"
    
    	for i := 0; i < len(data)-1; i++ {
    		r := NewReader(strings.NewReader(data[:i]))
    		_, err := io.Copy(io.Discard, r)
    		if err != io.ErrUnexpectedEOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 11K bytes
    - Viewed (1)
  7. src/fmt/fmt_test.go

    	{"%d", 12345, "12345"},
    	{"%v", 12345, "12345"},
    	{"%t", true, "true"},
    
    	// basic string
    	{"%s", "abc", "abc"},
    	{"%q", "abc", `"abc"`},
    	{"%x", "abc", "616263"},
    	{"%x", "\xff\xf0\x0f\xff", "fff00fff"},
    	{"%X", "\xff\xf0\x0f\xff", "FFF00FFF"},
    	{"%x", "", ""},
    	{"% x", "", ""},
    	{"%#x", "", ""},
    	{"%# x", "", ""},
    	{"%x", "xyz", "78797a"},
    	{"%X", "xyz", "78797A"},
    	{"% x", "xyz", "78 79 7a"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  8. src/compress/flate/inflate_test.go

    		}
    	}
    }
    
    func TestReaderTruncated(t *testing.T) {
    	vectors := []struct{ input, output string }{
    		{"\x00", ""},
    		{"\x00\f", ""},
    		{"\x00\f\x00", ""},
    		{"\x00\f\x00\xf3\xff", ""},
    		{"\x00\f\x00\xf3\xffhello", "hello"},
    		{"\x00\f\x00\xf3\xffhello, world", "hello, world"},
    		{"\x02", ""},
    		{"\xf2H\xcd", "He"},
    		{"\xf2H͙0a\u0084\t", "Hel\x90\x90\x90\x90\x90"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:23:54 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. src/syscall/wtf8_windows_test.go

    	},
    	{
    		str:  "\x7F",
    		wstr: []uint16{0x7F},
    	},
    
    	// 2-byte
    	{
    		str:  "\xC2\x80",
    		wstr: []uint16{0x80},
    	},
    	{
    		str:  "\xD7\x8A",
    		wstr: []uint16{0x05CA},
    	},
    	{
    		str:  "\xDF\xBF",
    		wstr: []uint16{0x07FF},
    	},
    
    	// 3-byte
    	{
    		str:  "\xE0\xA0\x80",
    		wstr: []uint16{0x0800},
    	},
    	{
    		str:  "\xE2\xB0\xBC",
    		wstr: []uint16{0x2C3C},
    	},
    	{
    		str:  "\xEF\xBF\xBF",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/unicode/utf8/utf8_test.go

    	"\xed\xa0\x80\x80", // surrogate min
    	"\xed\xbf\xbf\x80", // surrogate max
    
    	// xx
    	"\x91\x80\x80\x80",
    
    	// s1
    	"\xC2\x7F\x80\x80",
    	"\xC2\xC0\x80\x80",
    	"\xDF\x7F\x80\x80",
    	"\xDF\xC0\x80\x80",
    
    	// s2
    	"\xE0\x9F\xBF\x80",
    	"\xE0\xA0\x7F\x80",
    	"\xE0\xBF\xC0\x80",
    	"\xE0\xC0\x80\x80",
    
    	// s3
    	"\xE1\x7F\xBF\x80",
    	"\xE1\x80\x7F\x80",
    	"\xE1\xBF\xC0\x80",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
Back to top