https://github.com/cran/bayestestR
Tip revision: fe07bfa906d7e155439160caee538a3449cd3877 authored by Dominique Makowski on 08 April 2019, 08:42:41 UTC
version 0.1.0
version 0.1.0
Tip revision: fe07bfa
test-p_direction.R
context("p_direction")
test_that("p_direction", {
set.seed(333)
p_direction <- bayestestR::p_direction(bayestestR::rnorm_perfect(10000, 1, 1))
testthat::expect_equal(as.numeric(p_direction), 84.2, tolerance = 0.1)
testthat::expect_is(p_direction, "p_direction")
testthat::expect_equal(capture.output(print(p_direction)), "pd = 84.14%")
})