tests/testthat/test-spbal-HIP-1.R

# Validate HIP functions.
# test-spbal-HIP-1.R

testthat::test_that("2. Validate messaging when no population parameter is specified.", {
  # sample size.
  n <- 200
  # number of iterations.
  its <- 7
  # call HIP without population parameter.
  expect_error(spbal::HIP(n = n,
                          iterations =  its), "spbal(HIP) The population parameter must be used. Please specify a population.", fixed=TRUE)
})

Try the spbal package in your browser

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

spbal documentation built on April 4, 2025, 2:05 a.m.