(t *testing.T)
| 221 | } |
| 222 | |
| 223 | func TestConditionWrapper(t *testing.T) { |
| 224 | |
| 225 | assert := New(new(testing.T)) |
| 226 | |
| 227 | if !assert.Condition(func() bool { return true }, "Truth") { |
| 228 | t.Error("Condition should return true") |
| 229 | } |
| 230 | |
| 231 | if assert.Condition(func() bool { return false }, "Lie") { |
| 232 | t.Error("Condition should return false") |
| 233 | } |
| 234 | |
| 235 | } |
| 236 | |
| 237 | func TestDidPanicWrapper(t *testing.T) { |
| 238 |