expect_fail

Check whether an Expect value failed

Returns true if x is a VExpect Expect_stop or VExpect Expect_hold value (i.e. an expect_* comparison that did not pass). Useful for explicit checks alongside assert().

Parameters

Returns

True if x is a stopping or holding Expect value.

Examples

assert(expect_fail(expect_equal(1, 2)))

See Also

expect_msg, expect_pass, expect_equal