tests/testthat/test-function-stopIfNotMatrix.R

test_that("stopIfNotMatrix() works", {
  
  expect_error(stopIfNotMatrix(NULL))
  expect_error(stopIfNotMatrix(data.frame()))
  expect_silent(stopIfNotMatrix(matrix()))
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.