#' Copyright(c) 2017-2020 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)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.