(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func TestConditionWrapper(t *testing.T) { |
| 246 | t.Parallel() |
| 247 | |
| 248 | assert := New(new(testing.T)) |
| 249 | |
| 250 | if !assert.Condition(func() bool { return true }, "Truth") { |
| 251 | t.Error("Condition should return true") |
| 252 | } |
| 253 | |
| 254 | if assert.Condition(func() bool { return false }, "Lie") { |
| 255 | t.Error("Condition should return false") |
| 256 | } |
| 257 | |
| 258 | } |
| 259 | |
| 260 | func TestDidPanicWrapper(t *testing.T) { |
| 261 | t.Parallel() |