mirror of https://github.com/stretchr/testify.git
Minor doc string update
parent
5461242ffd
commit
0f9ba46361
|
@ -242,11 +242,11 @@ func TestNotContains(t *testing.T) {
|
|||
func TestCondition(t *testing.T) {
|
||||
mockT := new(testing.T)
|
||||
|
||||
if !Condition(mockT, func() bool { return true }, "True condition") {
|
||||
if !Condition(mockT, func() bool { return true }, "Truth") {
|
||||
t.Error("Condition should return true")
|
||||
}
|
||||
|
||||
if Condition(mockT, func() bool { return false }, "True condition") {
|
||||
if Condition(mockT, func() bool { return false }, "Lie") {
|
||||
t.Error("Condition should return false")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue