aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/encoding
diff options
context:
space:
mode:
authorShawn Smith <shawn.p.smith@gmail.com>2014-01-02 10:34:21 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2014-01-02 10:34:21 -0800
commiteaff83b98e27890723b175f242735a75f9616d7d (patch)
treeafd903552a4ff03b0a885bf823eea09451cfeb31 /src/pkg/encoding
parentb38da05ab15e9414ffcbf7f5ea3cf390e16e719c (diff)
downloadgo-eaff83b98e27890723b175f242735a75f9616d7d.tar.xz
encoding/hex: add Decode error test case
R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/46880043
Diffstat (limited to 'src/pkg/encoding')
-rw-r--r--src/pkg/encoding/hex/hex_test.go1
1 files changed, 1 insertions, 0 deletions
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"},
}