MCPcopy Create free account
hub / github.com/stretchr/testify / TestNotEqualValuesWrapper

Function TestNotEqualValuesWrapper

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

Source from the content-addressed store, hash-verified

155}
156
157func TestNotEqualValuesWrapper(t *testing.T) {
158
159 assert := New(new(testing.T))
160
161 if !assert.NotEqualValues("Hello World", "Hello World!") {
162 t.Error("NotEqualValues should return true")
163 }
164 if !assert.NotEqualValues(123, 1234) {
165 t.Error("NotEqualValues should return true")
166 }
167 if !assert.NotEqualValues(123.5, 123.55) {
168 t.Error("NotEqualValues should return true")
169 }
170 if !assert.NotEqualValues([]byte("Hello World"), []byte("Hello World!")) {
171 t.Error("NotEqualValues should return true")
172 }
173 if !assert.NotEqualValues(nil, new(AssertionTesterConformingObject)) {
174 t.Error("NotEqualValues should return true")
175 }
176 if assert.NotEqualValues(10, uint(10)) {
177 t.Error("NotEqualValues should return false")
178 }
179}
180
181func TestContainsWrapper(t *testing.T) {
182

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEqualValuesMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected