tests/testthat/test-assertions.R

test_that("symmetry", {
  expect_true(testSymmetric(Normal$new()))
  expect_equal(checkSymmetric(Gamma$new()), "Gamma is not symmetric")
  expect_silent(assertSymmetric(Laplace$new()))
})

Try the distr6 package in your browser

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

distr6 documentation built on March 28, 2022, 1:05 a.m.