Both arguments supports limited unquoting to make it easier to generate
readable failures within a function or for loop. See quasi_label for
more details.
expected
Computation and value to compare it to.
Both arguments supports limited unquoting to make it easier to generate
readable failures within a function or for loop. See quasi_label for
more details.
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 quasi_label.
label
Used to customise failure messages. For expert
use only.
expected.label
Used to customise failure messages. For expert
use only.
3rd edition
expect_equivalent() is deprecated in the 3rd edition. Instead use
expect_equal(ignore_attr = TRUE).
# NOT RUN {#' # expect_equivalent() ignores attributesa <- b <- 1:3names(b) <- letters[1:3]
# }# NOT RUN {expect_equal(a, b)
# }# NOT RUN {expect_equivalent(a, b)
# }