(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestNotNilWrapper(t *testing.T) { |
| 62 | assert := New(new(testing.T)) |
| 63 | |
| 64 | if !assert.NotNil(new(AssertionTesterConformingObject)) { |
| 65 | t.Error("NotNil should return true: object is not nil") |
| 66 | } |
| 67 | if assert.NotNil(nil) { |
| 68 | t.Error("NotNil should return false: object is nil") |
| 69 | } |
| 70 | |
| 71 | } |
| 72 | |
| 73 | func TestNilWrapper(t *testing.T) { |
| 74 | assert := New(new(testing.T)) |