Equals asserts that the supplied value is equal to the expected value.
(expect interface{})
| 64 | |
| 65 | // Equals asserts that the supplied value is equal to the expected value. |
| 66 | func (o OnValue) Equals(expect interface{}) bool { |
| 67 | return o.Compare(o.value, "==", expect).Test(o.value == expect) |
| 68 | } |
| 69 | |
| 70 | // NotEquals asserts that the supplied value is not equal to the test value. |
| 71 | func (o OnValue) NotEquals(test interface{}) bool { |