tests/testthat/test-calc_kurtosis.R

test_that("Wrong type", {

  expect_error(calc_kurtosis(x = "a"))

  expect_error(calc_kurtosis(x = TRUE))

  expect_error(calc_kurtosis(x = x,type = 1))

  expect_error(calc_kurtosis(x = x,type = TRUE))

})

test_that("Invalid option", {

  expect_error(calc_kurtosis(x = x,type = "a"))

})
vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.