tests/testthat/test-weib_percentile.R

context("weib_percentile")

test_that("weib_percentile calculates a value that seems probable",{

  x <- rnorm(n = 10, mean = 150, sd = 10)
  expect_equal(weib_percentile(x, percentile = 0.5, iterations = 20),
               mean(x),
               tolerance = 7)

})

Try the phenesse package in your browser

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

phenesse documentation built on July 29, 2020, 1:06 a.m.