Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDecodeStringErr (0.2 sec)

  1. src/encoding/hex/hex_test.go

    		n, err := Decode(out, []byte(tt.in))
    		if string(out[:n]) != tt.out || err != tt.err {
    			t.Errorf("Decode(%q) = %q, %v, want %q, %v", tt.in, string(out[:n]), err, tt.out, tt.err)
    		}
    	}
    }
    
    func TestDecodeStringErr(t *testing.T) {
    	for _, tt := range errTests {
    		out, err := DecodeString(tt.in)
    		if string(out) != tt.out || err != tt.err {
    			t.Errorf("DecodeString(%q) = %q, %v, want %q, %v", tt.in, out, err, tt.out, tt.err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top