From: Shawn Smith Date: Thu, 2 Jan 2014 18:34:21 +0000 (-0800) Subject: encoding/hex: add Decode error test case X-Git-Tag: go1.3beta1~1072 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaff83b98e27890723b175f242735a75f9616d7d;p=gostls13.git encoding/hex: add Decode error test case R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/46880043 --- diff --git a/src/pkg/encoding/hex/hex_test.go b/src/pkg/encoding/hex/hex_test.go index cef4ef41b7..b969636cd5 100644 --- a/src/pkg/encoding/hex/hex_test.go +++ b/src/pkg/encoding/hex/hex_test.go @@ -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"}, }