diff options
| author | Shawn Smith <shawn.p.smith@gmail.com> | 2014-01-02 10:34:21 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2014-01-02 10:34:21 -0800 |
| commit | eaff83b98e27890723b175f242735a75f9616d7d (patch) | |
| tree | afd903552a4ff03b0a885bf823eea09451cfeb31 /src/pkg/encoding | |
| parent | b38da05ab15e9414ffcbf7f5ea3cf390e16e719c (diff) | |
| download | go-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.go | 1 |
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"}, } |
