tests/testthat/test-is_GHvalid.R

test_that("invalid parameter values are detected", {
  # Parameter h
  expect_equal(is_GHvalid(h = c(2, 3, 0, 0.8, 1.2, 18)), TRUE)
  expect_type(is_GHvalid(h = -3), 'character')
  expect_type(is_GHvalid(h = c(2, -3, 4, 9)), 'character')
})

Try the tukeyGH package in your browser

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

tukeyGH documentation built on April 10, 2021, 9:06 a.m.