# NOT RUN {
# Test to make sure an object is not of a class.
# }
# NOT RUN {
# will return an error.
expect_is_not(1L, "numeric")
# }
# NOT RUN {
# but this is fine.
expect_is_not('a', "numeric")
expect_is_exactly('a', "character")
# }
Run the code above in your browser using DataLab