tests/testthat/test-utils.R

test_that("internal formatting helper handles empty and populated input", {
  expect_identical(scFlex:::collapse_or_none(character(0)), "None")
  expect_identical(scFlex:::collapse_or_none(c("a", "b")), "a, b")
})

test_that("inspect_sc rejects unsupported file extensions", {
  x <- tempfile(fileext = ".txt")
  file.create(x)
  expect_error(inspect_sc(x), "Unsupported file extension")
})

Try the scFlex package in your browser

Any scripts or data that you put into this service are public.

scFlex documentation built on Sept. 29, 2026, 5:10 p.m.