tests/testthat/test-methods-dfba_beta_descriptive.R

# Test of beta descriptive methods


library(vdiffr)

set.seed(77)


object<-dfba_beta_descriptive(a = 38,
                              b = 55)


test_that("Show method works",{
  expect_output(show(object))
})

test_that("Plot method works",{
  expect_doppelganger(
    title = "beta_descriptive_plot",
    fig = plot(object),
  )
})

Try the DFBA package in your browser

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

DFBA documentation built on May 29, 2024, 10:36 a.m.