tests/testthat/test-deprecated.R

# library(testthat); library(downsize)
context("deprecated")

test_that("Deprecated functions warn correctly", {
  expect_warning(x <- ds(1:10, 2))
  expect_warning(scale_down())
  expect_warning(scale_up())
  expect_warning(scaling())
})
wlandau/downsize documentation built on March 19, 2023, 4:05 a.m.