expect_length {tinytest} | R Documentation |
Check length of an object
Description
Check length of an object
Usage
expect_length(current, length, info = NA_character_, ...)
Arguments
current |
|
length |
|
info |
|
... |
Currently not used. |
See Also
Other test-functions:
expect_equal_to_reference()
,
expect_equal()
,
expect_match()
,
ignore()
Examples
expect_length(3:4, 2) # TRUE
expect_length(2:5, 1) # FALSE
[Package tinytest version 1.4.1 Index]