tests/testthat/test_getMinParentAge.R

#' Copyright(c) 2017-2024 R. Mark Sharp
#' This file is part of nprcgenekeepr
context("getMinParentAge")

test_that("getMinParentAge throws an error with no input defined", {
  expect_error(
    getMinParentAge(),
    "cannot coerce type 'closure' to vector of type 'double'"
  )
})
test_that(paste0(
  "getMinParentAge throws an error with input improperly ",
  "defined in ui.R"
), {
  expect_error(
    getMinParentAge(input = list(minParentAge = 0.0)),
    "cannot coerce type 'closure' to vector of type 'double'"
  )
})

Try the nprcgenekeepr package in your browser

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

nprcgenekeepr documentation built on June 8, 2025, 10:55 a.m.