diff --git a/assert/assertions_test.go b/assert/assertions_test.go index afc2e41..9c5bef8 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -211,6 +211,9 @@ func TestNil(t *testing.T) { if !Nil(mockT, nil) { t.Error("Nil should return true: object is nil") } + if !Nil(mockT, (*struct{})(nil)) { + t.Error("Nil should return true: object is (*struct{})(nil)") + } if Nil(mockT, new(AssertionTesterConformingObject)) { t.Error("Nil should return false: object is not nil") }