Description Usage Arguments Examples
View source: R/utils-testthat-helpers.R
This is an expectation as a counterpart of testthat::expect_null()
.
1 | expect_not_null(object, info = NULL, label = NULL)
|
object |
Object to test. |
info |
Extra information to be included in the message.
This argument is soft-deprecated and should not be used in new code.
Instead see alternatives in |
label |
Used to customize failure messages. For expert use only. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
x <- NULL
y <- 10
expect_not_null(y)
testthat::show_failure(expect_not_null(x))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.