tests/testthat/test-harmonic.R

context("harmonic")

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

Try the wrswoR package in your browser

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

wrswoR documentation built on July 27, 2020, 1:08 a.m.