tests/testthat/test-unload.R

test_that("unloading leaves no trace", {
  library(mlr3spatiotempcv)
  n_resamplings = length(resamplings)
  n_total = length(mlr_resamplings$keys())
  unloadNamespace("mlr3spatiotempcv")
  n_mlr = length(mlr_resamplings$keys())
  expect_true(n_resamplings == n_total - n_mlr)
})
mlr-org/mlr3spatiotempcv documentation built on April 23, 2024, 6:50 a.m.