tests/testthat/test-add_disease.R

test_that("add_disease works", {

  phenos <- example_phenos()
  phenos2 <- add_disease(phenos = phenos)
  testthat::expect_true(
    all(phenos$hpo_id %in% phenos2$hpo_id)
  )
  testthat::expect_gte(
    nrow(phenos2),7000
  )
})
neurogenomics/HPOExplorer documentation built on Aug. 24, 2024, 1:39 a.m.