tests/testthat/testMhclustEmpty.R

context("mhclust: pathological cases")

library(mhca)

test_that("missing/empty/invalid input recognized", {
  expect_error(mhclust())
  expect_error(mhclust(c()))
  expect_error(mhclust(NULL))
  expect_error(mhclust(1))
  expect_error(mhclust(1:10))
})
tsieger/mhca documentation built on June 5, 2023, 7:26 p.m.