https://github.com/cran/bayestestR
Raw File
Tip revision: e1fa15d202de277bb07e58bb3013557724072b2b authored by Dominique Makowski on 22 September 2019, 15:30:05 UTC
version 0.3.0
Tip revision: e1fa15d
test-distributions.R
context("rnorm")

test_that("rnorm", {
  x <- bayestestR::distribution_normal(10, 0, 1)
  testthat::expect_equal(mean(x), 0, tolerance = 0.02)
})
back to top