tests/testthat/test-is_ccp_tree_prior.R

context("is_ccp_tree_prior")

test_that("usage", {
  testthat::expect_true(
    is_ccp_tree_prior(
      create_ccp_tree_prior()
    )
  )

  testthat::expect_false(
    is_ccp_tree_prior(
      create_bd_tree_prior()
    )
  )

  testthat::expect_false(
    is_ccp_tree_prior(
      "nonsense"
    )
  )
})
richelbilderbeek/beautier documentation built on April 4, 2024, 12:33 p.m.