tests/testthat/test-testData.R

test_that("hgsc data is in the correct format", {
  library(GSEABase)

  data(hgsc)

  expect_true(all(sapply(lapply(hgsc, geneIds), length) > 0))
  expect_true(all(sapply(lapply(hgsc, collectionType), class) %in% 'BroadCollection'))
  expect_true(all(sapply(lapply(hgsc, collectionType), bcCategory) %in% 'h'))
  expect_length(hgsc, 50)
})
DavisLaboratory/vissE documentation built on Jan. 31, 2024, 5:02 a.m.