tests/testthat/test-checkmacroformat.R

test_that("test.checkMacroFormat", {

  expect_error(checkMacroFormat(1:10),
               info = "not a data frame")

  expect_error(checkMacroFormat(iris[1:10, ]),
               info = "more than one row")

  expect_true(checkMacroFormat(data.frame(x =1 )))
})
MikeKSmith/MSToolkit documentation built on Feb. 15, 2024, 5:32 p.m.