inst/examples/example-class-expectations.R

# Test to make sure an object is not of a class.
\dontrun{
# will return an error.
expect_is_not(1L, "numeric")
}

# but this is fine.
expect_is_not('a', "numeric")

expect_is_exactly('a', "character")
RDocTaskForce/testextra documentation built on Feb. 5, 2020, 11:05 p.m.