tests/testthat/test-hexbin.R

test_that("no error when called with ggplot2::diamonds", {

    # We expect no error here:
    expect_error(hexbin(ggplot2::diamonds, carat, price),
               NA)
})
nayefahmad/tidyverseInPackagesTest documentation built on Feb. 4, 2020, 6:20 p.m.