https://github.com/cran/bayestestR
Raw File
Tip revision: aee422d7cd4098dad89e31ecc6dfd9e539d2bda4 authored by Dominique Makowski on 06 August 2019, 10:20:02 UTC
version 0.2.5
Tip revision: aee422d
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