From eaff83b98e27890723b175f242735a75f9616d7d Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Thu, 2 Jan 2014 10:34:21 -0800 Subject: [PATCH] encoding/hex: add Decode error test case R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/46880043 --- src/pkg/encoding/hex/hex_test.go | 1 + 1 file changed, 1 insertion(+) 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"}, } -- 2.48.1