Description Usage Arguments Details Value
View source: R/01_expect_same_behavior.R
'expect_same_behavior()' tests if two calls trigger the same result, printed output, messages, warnings and failures. These can be tested separately or together.
1 2 |
object, expected |
Computation and value to compare it to. |
value |
Wether to test if result is identical. |
output |
Wether to test if printed output is identical. |
message |
Wether to test if messages are identical. |
warning |
Wether to test if warnings are identical. |
failure |
Wether to test if both calls fail with the same error message. |
desc |
Description, if not missing the call will forward 'desc' to 'test_that'. |
'expect_same_behavior()' is wrapped by the '~+++++?' family of said dubious operators (powered by the package *doubt*)
Returns 'NULL' invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.