(t *testing.T)
| 325 | } |
| 326 | |
| 327 | func TestJSONEq_Array(t *testing.T) { |
| 328 | mockT := new(MockT) |
| 329 | JSONEq(mockT, `["foo", {"hello": "world", "nested": "hash"}]`, `["foo", {"nested": "hash", "hello": "world"}]`) |
| 330 | if mockT.Failed { |
| 331 | t.Error("Check should pass") |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | func TestJSONEq_HashAndArrayNotEquivalent(t *testing.T) { |
| 336 | mockT := new(MockT) |