is_false {testthat} | R Documentation |
A useful fall-back expectation like is_true
is_false() expect_false(object, info = NULL, label = NULL)
object |
object to test |
info |
extra information to be included in the message (useful when writing tests in loops). |
label |
object label. When |
Other expectations: equals
,
expect_equal
,
expect_equivalent
,
expect_error
,
expect_identical
, expect_is
,
expect_match
, expect_message
,
expect_output
, expect_true
,
expect_warning
,
gives_warning
, is_a
,
is_equivalent_to
,
is_identical_to
, is_true
,
matches
, prints_text
,
shows_message
,
takes_less_than
, throws_error
expect_that(3 == 2, is_false()) expect_false(3 == 2) a <- 1:3 expect_that(length(a) == 4, is_false())