Usage
check_format(x, len = NULL, min.len = NULL, max.len = NULL)
assert_format(
x,
len = NULL,
min.len = NULL,
max.len = NULL,
.var.name = checkmate::vname(x),
add = NULL
)
test_format(x, len = NULL, min.len = NULL, max.len = NULL)
expect_format(
x,
len = NULL,
min.len = NULL,
max.len = NULL,
info = NULL,
label = vname(x)
)Arguments
- x
[
any]
Object to check.- len
[
integer(1)]
Exact expected length ofx.- min.len
[
integer(1)]
Minimal length ofx.- max.len
[
integer(1)]
Maximal length ofx.- .var.name
[
character(1)]
Name of the checked object to print in assertions. Defaults to the heuristic implemented invname.- add
[
AssertCollection]
Collection to store assertion messages. SeeAssertCollection.- info
[
character(1)]
Extra information to be included in the message for the testthat reporter. Seeexpect_that.- label
[
character(1)]
Name of the checked object to print in messages. Defaults to the heuristic implemented invname.
See also
assertions for more details.
