MCPcopy
hub / github.com/expr-lang/expr / TestNotEqualWrapper

Function TestNotEqualWrapper

internal/testify/assert/forward_assertions_test.go:136–155  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func TestNotEqualWrapper(t *testing.T) {
137
138 assert := New(new(testing.T))
139
140 if !assert.NotEqual("Hello World", "Hello World!") {
141 t.Error("NotEqual should return true")
142 }
143 if !assert.NotEqual(123, 1234) {
144 t.Error("NotEqual should return true")
145 }
146 if !assert.NotEqual(123.5, 123.55) {
147 t.Error("NotEqual should return true")
148 }
149 if !assert.NotEqual([]byte("Hello World"), []byte("Hello World!")) {
150 t.Error("NotEqual should return true")
151 }
152 if !assert.NotEqual(nil, new(AssertionTesterConformingObject)) {
153 t.Error("NotEqual should return true")
154 }
155}
156
157func TestNotEqualValuesWrapper(t *testing.T) {
158

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…