JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")
(expected string, actual string, msg string, args ...interface{})
| 898 | // |
| 899 | // a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted") |
| 900 | func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ...interface{}) bool { |
| 901 | if h, ok := a.t.(tHelper); ok { |
| 902 | h.Helper() |
| 903 | } |
| 904 | return JSONEqf(a.t, expected, actual, msg, args...) |
| 905 | } |
| 906 | |
| 907 | // Len asserts that the specified object has specific length. |
| 908 | // Len also fails if the object has a type that len() not accept. |