tests/testthat/test-debit-plot.R

plot1 <- pigs3 %>%
  debit_map() %>%
  debit_plot()


test_that("`debit_plot()` returns a ggplot object", {
  plot1 %>%  expect_s3_class("ggplot")
})

test_that("The S3 inheritance check works correctly", {
  mtcars %>% debit_plot() %>% expect_error()
})

Try the scrutiny package in your browser

Any scripts or data that you put into this service are public.

scrutiny documentation built on Sept. 22, 2024, 9:06 a.m.