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