tests/testthat/test-survival_language.R

test_that("plot_model errors when what='survival' but no translocations", {
  mock_model_obj <- list(data=list(translocations=NA))
  expect_error(survival_table(mock_model_obj),
               regexp = "No translocation data are present")
})
SNARL1/mrmr documentation built on Nov. 23, 2023, 7:04 a.m.