| 179 | } |
| 180 | |
| 181 | func TestContainsWrapper(t *testing.T) { |
| 182 | |
| 183 | assert := New(new(testing.T)) |
| 184 | list := []string{"Foo", "Bar"} |
| 185 | |
| 186 | if !assert.Contains("Hello World", "Hello") { |
| 187 | t.Error("Contains should return true: \"Hello World\" contains \"Hello\"") |
| 188 | } |
| 189 | if assert.Contains("Hello World", "Salut") { |
| 190 | t.Error("Contains should return false: \"Hello World\" does not contain \"Salut\"") |
| 191 | } |
| 192 | |
| 193 | if !assert.Contains(list, "Foo") { |
| 194 | t.Error("Contains should return true: \"[\"Foo\", \"Bar\"]\" contains \"Foo\"") |
| 195 | } |
| 196 | if assert.Contains(list, "Salut") { |
| 197 | t.Error("Contains should return false: \"[\"Foo\", \"Bar\"]\" does not contain \"Salut\"") |
| 198 | } |
| 199 | |
| 200 | } |
| 201 | |
| 202 | func TestNotContainsWrapper(t *testing.T) { |
| 203 | |