Making panic level assertions more helpful

This commit is contained in:
Dan Buch 2014-11-06 08:42:52 -05:00
parent 9836f1ba0e
commit 5164671bc6
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func TestEntryPanicln(t *testing.T) {
assert.Equal(t, "kaboom", pVal.Message) assert.Equal(t, "kaboom", pVal.Message)
assert.Equal(t, errBoom, pVal.Data["err"]) assert.Equal(t, errBoom, pVal.Data["err"])
default: default:
t.Fatal() t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal)
} }
}() }()
@ -42,7 +42,7 @@ func TestEntryPanicf(t *testing.T) {
assert.Equal(t, "kaboom true", pVal.Message) assert.Equal(t, "kaboom true", pVal.Message)
assert.Equal(t, errBoom, pVal.Data["err"]) assert.Equal(t, errBoom, pVal.Data["err"])
default: default:
t.Fatal() t.Fatalf("want type *Entry, got %T: %#v", pVal, pVal)
} }
}() }()