https://github.com/cran/bayestestR
Revision 9985109256c08d654edb46adb9cb20c913fb1888 authored by Dominique Makowski on 29 May 2019, 14:10:02 UTC, committed by cran-robot on 29 May 2019, 14:10:02 UTC
1 parent fe07bfa
Raw File
Tip revision: 9985109256c08d654edb46adb9cb20c913fb1888 authored by Dominique Makowski on 29 May 2019, 14:10:02 UTC
version 0.2.0
Tip revision: 9985109
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