test_that("Null distribution works", {
d <- dst_null()
expect_equal(mean(d), NA_real_)
expect_equal(variance(d), NA_real_)
expect_equal(stdev(d), NA_real_)
expect_equal(skewness(d), NA_real_)
expect_equal(kurtosis(d), NA_real_)
expect_equal(kurtosis_exc(d), NA_real_)
expect_equal(eval_cdf(d, at = 0), NA_real_)
expect_equal(eval_density(d, at = 0), NA_real_)
expect_equal(eval_pmf(d, at = 0), NA_real_)
expect_equal(eval_quantile(d, at = 0), NA_real_)
expect_equal(realise(d), NA_real_)
expect_null(vtype(d))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.