expect_lt

Numeric less-than assertion

Passes if a < b for numeric arguments (Int or Float). Returns Expect_hold when either argument is NA; Expect_stop on errors.

Parameters

Returns

Expect_pass when a < b, Expect_stop otherwise.

Examples

assert(expect_lt(1, 2))
assert(expect_lt(1.5, 2.5))

See Also

expect_equal, expect_gte, expect_gt, expect_lte