tests/test_isTRUE.R

source("helper/helper.R")

f = backports:::isTRUE
expect_identical(f(TRUE), TRUE)
expect_identical(f(FALSE), FALSE)
expect_identical(f(1), FALSE)
expect_identical(f(iris), FALSE)
expect_identical(f(structure(TRUE, foo = "bar")), TRUE)
mllg/backports documentation built on March 15, 2023, 8:07 p.m.