https://github.com/cran/bayestestR
Revision fe07bfa906d7e155439160caee538a3449cd3877 authored by Dominique Makowski on 08 April 2019, 08:42:41 UTC, committed by cran-robot on 08 April 2019, 08:42:41 UTC
0 parent
Raw File
Tip revision: fe07bfa906d7e155439160caee538a3449cd3877 authored by Dominique Makowski on 08 April 2019, 08:42:41 UTC
version 0.1.0
Tip revision: fe07bfa
test-density_at.R
context("density_at")

test_that("density_at", {
  testthat::expect_equal(density_at(rnorm_perfect(1000), 0), 0.389, tolerance = 0.01)
  testthat::expect_equal(density_at(rnorm_perfect(1000), c(0, 1))[1], 0.389, tolerance = 0.01)
})
back to top