tests/testthat/test_allTrueNoNA.R

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

test_that("allTrueNoNA judges all vectors with one or more NA value as FALSE", {
  expect_true(allTrueNoNA(c(TRUE, TRUE, TRUE)))
  expect_false(allTrueNoNA(c(NA, TRUE, TRUE)))
  expect_false(allTrueNoNA(c(NA, FALSE, TRUE)))
  expect_false(allTrueNoNA(c(NA, FALSE, FALSE)))
  expect_false(allTrueNoNA(c(FALSE, FALSE, FALSE)))
})

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.