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 Dec. 11, 2024, 12:55 a.m.