summaryrefslogtreecommitdiff
path: root/src/pkg/encoding/ascii85/ascii85_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/encoding/ascii85/ascii85_test.go')
-rw-r--r--src/pkg/encoding/ascii85/ascii85_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/encoding/ascii85/ascii85_test.go b/src/pkg/encoding/ascii85/ascii85_test.go
index 738e1cc1b..fdfeb889f 100644
--- a/src/pkg/encoding/ascii85/ascii85_test.go
+++ b/src/pkg/encoding/ascii85/ascii85_test.go
@@ -17,7 +17,7 @@ type testpair struct {
var pairs = []testpair{
// Wikipedia example
- testpair{
+ {
"Man is distinguished, not only by his reason, but by this singular passion from " +
"other animals, which is a lust of the mind, that by a perseverance of delight in " +
"the continued and indefatigable generation of knowledge, exceeds the short " +
@@ -34,7 +34,7 @@ var bigtest = pairs[len(pairs)-1]
func testEqual(t *testing.T, msg string, args ...interface{}) bool {
if args[len(args)-2] != args[len(args)-1] {
- t.Errorf(msg, args)
+ t.Errorf(msg, args...)
return false
}
return true
@@ -138,8 +138,8 @@ func TestDecodeCorrupt(t *testing.T) {
p int
}
examples := []corrupt{
- corrupt{"v", 0},
- corrupt{"!z!!!!!!!!!", 1},
+ {"v", 0},
+ {"!z!!!!!!!!!", 1},
}
for _, e := range examples {