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")))
})
LieberInstitute/brainstorm documentation built on Dec. 17, 2021, 12:03 a.m.