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

Function TestJSONEqWrapper_Array

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

Source from the content-addressed store, hash-verified

604}
605
606func TestJSONEqWrapper_Array(t *testing.T) {
607 assert := New(new(testing.T))
608 if !assert.JSONEq(`["foo", {"hello": "world", "nested": "hash"}]`, `["foo", {"nested": "hash", "hello": "world"}]`) {
609 t.Error("JSONEq should return true")
610 }
611
612}
613
614func TestJSONEqWrapper_HashAndArrayNotEquivalent(t *testing.T) {
615 assert := New(new(testing.T))

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
JSONEqMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected