tests/testthat/test-disp_S.R

test_that("Formula returns dispersion scores in the unit interval [0,1]", {
  expect_true(disp_S(c(0,0,0,0,0,0,0,0,0,10), rep(1000, 10)) >= 0)
  expect_true(round(disp_S(rep(1, 10), rep(1000, 10)), 10) <= 1)
})

Try the tlda package in your browser

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

tlda documentation built on June 8, 2025, 11:41 a.m.