(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestAppendHex(t *testing.T) { |
| 22 | for _, tt := range internal.EncodeHexTests { |
| 23 | b := enc.AppendHex([]byte{}, []byte{tt.In}) |
| 24 | if got, want := string(b), tt.Out; got != want { |
| 25 | t.Errorf("appendHex(%x) = %s, want %s", tt.In, got, want) |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func TestStringBytes(t *testing.T) { |
| 31 | t.Parallel() |