tests/testthat/test-is_laplace_distr.R

context("is_laplace_distr")

test_that("use", {

  testthat::expect_true(
    is_laplace_distr(
      beautier::create_laplace_distr()
    )
  )

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