expect_length | R Documentation |
Check length of an object
expect_length(current, length, info = NA_character_, ...)
current |
|
length |
|
info |
|
... |
Currently not used. |
Other test-functions:
expect_equal_to_reference()
,
expect_equal()
,
expect_match()
,
ignore()
expect_length(3:4, 2) # TRUE expect_length(2:5, 1) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.