Equals asserts the array or map matches expected.
(expected interface{})
| 53 | |
| 54 | // Equals asserts the array or map matches expected. |
| 55 | func (o OnMap) Equals(expected interface{}) bool { |
| 56 | return o.mapsEqual(expected, func(a, b interface{}) bool { return a == b }) |
| 57 | } |
| 58 | |
| 59 | // EqualsWithComparator asserts the array or map matches expected using a comparator function |
| 60 | func (o OnMap) EqualsWithComparator(expected interface{}, same func(a, b interface{}) bool) bool { |