The error message in the first case should read Must be of length < 3 rather than <= 3.
checkmate::qassert(1:3, "X<3")
#> Error in eval(expr, envir, enclos): Assertion on '1:3' failed. Must be of length <= 3, but has length 3.
checkmate::qassert(1:4, "X<=3")
#> Error in eval(expr, envir, enclos): Assertion on '1:4' failed. Must be of length <= 3, but has length 4.
The error message in the first case should read
Must be of length < 3
rather than<= 3
.Created on 2019-10-25 by the reprex package (v0.3.0)