tests/testthat/test-add_tier.R

test_that("add_tier works", {

  phenos <- make_phenos_dataframe(ancestor = "Neurodevelopmental delay")
  phenos2 <- add_tier(phenos = phenos)
  cols <- c("tier","tier_auto")
  testthat::expect_false(all(cols %in% names(phenos)))
  testthat::expect_true(all(cols %in% names(phenos2)))
})
neurogenomics/HPOExplorer documentation built on Jan. 11, 2025, 8:40 a.m.