mirror of
https://github.com/golang/go
synced 2024-10-14 03:43:28 +00:00
encoding/hex: add Decode error test case
R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/46880043
This commit is contained in:
parent
b38da05ab1
commit
eaff83b98e
|
@ -82,6 +82,7 @@ type errTest struct {
|
|||
var errTests = []errTest{
|
||||
{"0", "encoding/hex: odd length hex string"},
|
||||
{"0g", "encoding/hex: invalid byte: U+0067 'g'"},
|
||||
{"00gg", "encoding/hex: invalid byte: U+0067 'g'"},
|
||||
{"0\x01", "encoding/hex: invalid byte: U+0001"},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue