https://github.com/cran/bayestestR
Raw File
Tip revision: 2565fc870cd7f0a64d857ff89e682dc9344dc7c1 authored by Dominique Makowski on 12 February 2020, 04:10:16 UTC
version 0.5.2
Tip revision: 2565fc8
test-density_at.R
context("density_at")

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