diff options
author | Rob Pike <r@golang.org> | 2012-02-10 09:44:56 +1100 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2012-02-10 09:44:56 +1100 |
commit | 522f785c5cc1e7f6aa96c61856dcd8726b5d9071 (patch) | |
tree | 8387266e2fa859e390afabeee5995d32db890c8b /src | |
parent | 4b36436c058cf8548f213fcca3a937df1f66bcbd (diff) | |
download | go-522f785c5cc1e7f6aa96c61856dcd8726b5d9071.tar.gz |
encoding/hex: vet the test prints
R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/5642075
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/encoding/hex/hex_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/encoding/hex/hex_test.go b/src/pkg/encoding/hex/hex_test.go index 2d24fd0a1..456f9eac7 100644 --- a/src/pkg/encoding/hex/hex_test.go +++ b/src/pkg/encoding/hex/hex_test.go @@ -87,7 +87,7 @@ func TestInvalidErr(t *testing.T) { dst := make([]byte, DecodedLen(len(test.in))) _, err := Decode(dst, []byte(test.in)) if err == nil { - t.Errorf("#%d: expected error; got none") + t.Errorf("#%d: expected error; got none", i) } else if err.Error() != test.err { t.Errorf("#%d: got: %v want: %v", i, err, test.err) } @@ -98,7 +98,7 @@ func TestInvalidStringErr(t *testing.T) { for i, test := range errTests { _, err := DecodeString(test.in) if err == nil { - t.Errorf("#%d: expected error; got none") + t.Errorf("#%d: expected error; got none", i) } else if err.Error() != test.err { t.Errorf("#%d: got: %v want: %v", i, err, test.err) } |