MCPcopy
hub / github.com/stretchr/testify / TestNotEqualWrapper

Function TestNotEqualWrapper

assert/forward_assertions_test.go:154–174  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

152}
153
154func TestNotEqualWrapper(t *testing.T) {
155 t.Parallel()
156
157 assert := New(new(testing.T))
158
159 if !assert.NotEqual("Hello World", "Hello World!") {
160 t.Error("NotEqual should return true")
161 }
162 if !assert.NotEqual(123, 1234) {
163 t.Error("NotEqual should return true")
164 }
165 if !assert.NotEqual(123.5, 123.55) {
166 t.Error("NotEqual should return true")
167 }
168 if !assert.NotEqual([]byte("Hello World"), []byte("Hello World!")) {
169 t.Error("NotEqual should return true")
170 }
171 if !assert.NotEqual(nil, new(AssertionTesterConformingObject)) {
172 t.Error("NotEqual should return true")
173 }
174}
175
176func TestNotEqualValuesWrapper(t *testing.T) {
177 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected