Loose truthiness assertion
Passes if x is truthy per is_truthy
(non-zero numbers, non-empty strings, non-empty containers, etc.).
Any): The value to check.Expect_pass when x is truthy;
Expect_hold on NA; Expect_stop on errors or
falsy values.
assert(expect_truthy(42))
assert(expect_truthy("hello"))