tests/testthat/test-find_mad.R

test_that("find_mad", {
  expect_snapshot(find_mad(
    data = mtcars,
    col.list = names(mtcars),
    criteria = 3
  ))
  mtcars2 <- mtcars
  mtcars2$car <- row.names(mtcars)
  expect_snapshot(find_mad(
    data = mtcars2,
    col.list = names(mtcars),
    ID = "car",
    criteria = 3
  ))
})

Try the rempsyc package in your browser

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

rempsyc documentation built on July 3, 2024, 5:08 p.m.