(t *testing.T)
| 604 | } |
| 605 | |
| 606 | func 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 | |
| 614 | func TestJSONEqWrapper_HashAndArrayNotEquivalent(t *testing.T) { |
| 615 | assert := New(new(testing.T)) |