tests/testthat/test-nefa_index.R

context("test-nefa_index")

test_that("happy path works", {
  expect_error(nefa_index(ins = 1, bmi = 1, nefa = 1))
  expect_error(nefa_index(ins = c(1, 2), bmi = 1, nefa = 1))
  expect_error(nefa_index(ins = c(1, 2, 3), bmi = c(1, 2), nefa = 1))
  expect_error(nefa_index(ins = c(1, 2, 3), bmi = 1, nefa = c(1, 2)))
})
jcpsantiago/IScalc documentation built on May 20, 2019, 9:27 a.m.