expect_same_behavior: Expectation: do two calls behave the same ?

Description Usage Arguments Details Value

View source: R/01_expect_same_behavior.R

Description

'expect_same_behavior()' tests if two calls trigger the same result, printed output, messages, warnings and failures. These can be tested separately or together.

Usage

1
2
expect_same_behavior(object, expected, value = TRUE, output = TRUE,
  message = TRUE, warning = TRUE, failure = TRUE)

Arguments

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'.

Details

'expect_same_behavior()' is wrapped by the '~+++++?' family of said dubious operators (powered by the package *doubt*)

Value

Returns 'NULL' invisibly.


moodymudskipper/dubioustests documentation built on Nov. 4, 2019, 7:29 p.m.