tests/testthat/test-harmonic.R

test_that("values around length of lookup table", {
  i <- length(.harmonic.series)
  x <- sapply(seq.int(i - 5, i + 5), .harmonic)
  expect_true(all(diff(x) > 0))
})
krlmlr/wrswoR documentation built on Feb. 4, 2024, 10:20 a.m.