tests/testthat/test_spss_swap.R

# Testing the Input -------------------------------------------------------
test_that("spss_swap stops with an error for invalid argument types", {
  expect_warning(spss_swap(mtcars), "Invalid argument type")
  expect_error(spss_swap(),"Need to specify the mandatory argument")
})


# Testing Output ----------------------------------------------------------
# to be written
Buedenbender/datscience documentation built on Nov. 21, 2022, 11:14 a.m.