tests/testthat/test-statBootstrap.R

context('functions')

test_that('statBootstrap', {
  skip_on_cran()
  
  expect_error(statBootstrap(block_length = 10))
  expect_error(statBootstrap(T = "1", block_length = 10))
  expect_error(statBootstrap(T = -1, block_length = 10))
  expect_error(statBootstrap(T = 100, bootstrapRep = "1"))
  expect_error(statBootstrap(T = 100, bootstrapRep  = -1))
  expect_error(statBootstrap(T = 100))
  expect_error(statBootstrap(T = 100, block_length = 7))
  
})

Try the monotonicity package in your browser

Any scripts or data that you put into this service are public.

monotonicity documentation built on Dec. 5, 2019, 5:08 p.m.