tests/testthat/test_akpRobustD.R

## Daniel Gerlanc and Kris Kirby (2010-2015)
## Input and regression tests for the akpRobustD function

test_that("akpRobustD produces a known result", {
  dat = read.csv(system.file("robust_d_test.csv", package="bootES"))
  truth = 0.190912
  res = bootES:::akpRobustD(dat[["diff"]], seq_len(nrow(dat)))
  expect_equal(truth, res, tolerance=1e-4)
})
dgerlanc/bootES documentation built on Nov. 15, 2024, 12:07 a.m.