expect_pass

Check whether an Expect value passed

Returns true if x is a VExpect Expect_pass value (i.e. an expect_* comparison that succeeded). Useful for explicit checks alongside assert().

Parameters

Returns

True if x is a passing Expect value.

Examples

assert(expect_pass(expect_equal(a, b)))

See Also

expect_msg, expect_fail, expect_equal