camli/test/asserts: missing format param

This commit is contained in:
Brad Fitzpatrick 2011-03-19 01:10:56 -07:00
parent 3bc3aa1390
commit 14530584cb
1 changed files with 2 additions and 2 deletions

View File

@ -92,13 +92,13 @@ func ExpectNil(t *testing.T, v interface{}, what string) {
if v == nil { if v == nil {
return return
} }
t.Errorf("%s: expected nil; got %v", v) t.Errorf("%s: expected nil; got %v", what, v)
} }
func AssertNil(t *testing.T, v interface{}, what string) { func AssertNil(t *testing.T, v interface{}, what string) {
if v == nil { if v == nil {
return return
} }
t.Fatalf("%s: expected nil; got %v", v) t.Fatalf("%s: expected nil; got %v", what, v)
} }