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)
})

Try the helda package in your browser

Any scripts or data that you put into this service are public.

helda documentation built on Jan. 6, 2021, 5:09 p.m.