tests/testthat/test-check_cols.R

test_that("Cols present", {
    expect_null(.check_cols(table = test_snps, check_colnames = c("A")))
    expect_null(.check_cols(table = test_snps, check_colnames = c("A", "B")))
})

test_that("Cols Missing", {
    expect_error(.check_cols(table = test_snps, check_colnames = c("X", )))
    expect_error(.check_cols(table = test_snps, check_colnames = c("X", "Y")))
})
joshstolz/brainstorm documentation built on Aug. 10, 2021, 1:23 p.m.