tests/testthat/test-is_outlier.R

test_that("Expect equal", {

  expect_equal(
    object = is_outlier(1:5),
    expected = c(FALSE, FALSE, FALSE, FALSE, FALSE)
  )

})

test_that("Wrong type", {

  expect_error(is_outlier(x = "a"))

  expect_error(is_outlier(x = TRUE))
})
vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.