tests/testthat/test-global_inertia.R

library(helda)

context('Global inertia function')

test_that("global inertial", {
  data <- mtcars
  result <- compute_global_inertia(data)
  load('global_inertia_test.Rda')
  expect_equal(result, global_inertia_test, check.environment = FALSE)
})
Redcart/helda documentation built on March 3, 2023, 11:55 p.m.