tests/testthat/test_skewKurt.R

library(nipnTK)
context("Tests for skewKurt")

svy <- dist.ex01
sk <- skewKurt(svy$muac)

test_that("sk is skewKurt", {
  expect_is(sk, "skewKurt")
})

test_that("str(sk) is list", {
  expect_true(is.list(sk))
})

test_that("print(sk) message exists", {
  expect_output(print(sk))
})

Try the nipnTK package in your browser

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

nipnTK documentation built on June 22, 2024, 11:06 a.m.