1
0
mirror of https://github.com/golang/go synced 2024-09-25 13:20:13 -06:00

json: fix Fatal call in test

R=rsc
CC=golang-dev
https://golang.org/cl/3751041
This commit is contained in:
Rob Pike 2010-12-17 13:43:59 -08:00
parent 3832389036
commit 18b39f20ef

View File

@ -112,7 +112,7 @@ func TestMarshalBadUTF8(t *testing.T) {
t.Fatal("Marshal returned data")
}
if _, ok := err.(*InvalidUTF8Error); !ok {
t.Fatal("Marshal did not return InvalidUTF8Error: %T %v", err, err)
t.Fatalf("Marshal did not return InvalidUTF8Error: %T %v", err, err)
}
}