tests/testthat/test-flm_def.R

if (!exists("afds")) afds <- FacileData::an_fds()
if (!exists("xsamples")) {
  xsamples <- afds |> 
    FacileData::filter_samples(cell_abbrev %in% c("CNT", "EC"))
}

test_that("flm_def errors when numerator and denominator are the same", {
  expect_error({
    flm_def(xsamples, "cell_abbrev", "CNT", "CNT")
  }, "numer.*denom.*same")
})
facileverse/FacileAnalysis documentation built on Sept. 26, 2024, 3:19 p.m.