tests/testthat/test-auc.R

test_that("No errors/warnings with standard use", {
  expect_error(
    auc_density(density = dbeta, shape1 = 1, shape2 = 1),
    NA
  )

  expect_error(
    runif(10000) %>% hist(breaks = 250) %>% auc_histogram(),
    NA
  )
})
ddsjoberg/bstfun documentation built on July 4, 2023, 10:59 a.m.