(t *testing.T)
| 633 | } |
| 634 | |
| 635 | func TestJSONEqWrapper_ExpectedIsNotJSON(t *testing.T) { |
| 636 | assert := New(new(testing.T)) |
| 637 | if assert.JSONEq("Not JSON", `{"foo": "bar", "hello": "world"}`) { |
| 638 | t.Error("JSONEq should return false") |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | func TestJSONEqWrapper_ExpectedAndActualNotJSON(t *testing.T) { |
| 643 | assert := New(new(testing.T)) |