tests/testthat/test_histNormal.R

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

svy <- dist.ex01
histNormal(svy$muac)
histNormal(svy$haz)
histNormal(svy$waz)
histNormal(svy$whz)

test_that("histNormal is NULL", {
  expect_is(histNormal(svy$muac), "NULL")
})

test_that("histNormal on non-numeric", {
  expect_error(histNormal(svy$oedema))
})
validmeasures/nipnTK documentation built on Nov. 2, 2024, 6:50 p.m.