Skip to content

Commit

Permalink
update .calc_dist_params tests for removed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Sep 25, 2024
1 parent 23e83c7 commit 245614e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/testthat/test-calc_dist_params.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
test_that(".calc_dist_params works as expected converting from mean and sd", {
params <- .calc_dist_params(
prob_distribution = "gamma",
prob_distribution_params = NA,
summary_stats = create_summary_stats(mean = 5, sd = 2),
sample_size = NA
)
Expand All @@ -13,7 +12,6 @@ test_that(".calc_dist_params works as expected converting from mean and sd", {
test_that(".calc_dist_params works as expected converting for different dist", {
params <- .calc_dist_params(
prob_distribution = "lnorm",
prob_distribution_params = NA,
summary_stats = create_summary_stats(mean = 5, sd = 2),
sample_size = NA
)
Expand All @@ -26,7 +24,6 @@ test_that(".calc_dist_params works as expected extracting from percentiles", {
# messages for numerical optimisation suppressed
params <- suppressMessages(.calc_dist_params(
prob_distribution = "gamma",
prob_distribution_params = NA,
summary_stats = create_summary_stats(
quantiles = c("25" = 10, "75" = 20)
),
Expand All @@ -39,7 +36,6 @@ test_that(".calc_dist_params works as expected extracting from percentiles", {
# messages for numerical optimisation suppressed
params <- suppressMessages(.calc_dist_params(
prob_distribution = "lnorm",
prob_distribution_params = NA,
summary_stats = create_summary_stats(
quantiles = c("25" = 10, "75" = 20)
),
Expand All @@ -54,7 +50,6 @@ test_that(".calc_dist_params works as expected extracting from median & range",
# messages for numerical optimisation suppressed
params <- suppressMessages(.calc_dist_params(
prob_distribution = "gamma",
prob_distribution_params = NA,
summary_stats = create_summary_stats(
median = 10,
lower_range = 5,
Expand All @@ -71,7 +66,6 @@ test_that(".calc_dist_params fails as expected extracting without sample size",
expect_message(
params <- .calc_dist_params(
prob_distribution = "gamma",
prob_distribution_params = NA,
summary_stats = create_summary_stats(
median = 10,
lower_range = 5,
Expand All @@ -89,7 +83,6 @@ test_that(".calc_dist_params messages as expected without summary stats", {
expect_message(
params <- .calc_dist_params(
prob_distribution = "gamma",
prob_distribution_params = NA,
summary_stats = create_summary_stats(mean = 5, median = 5),
sample_size = NA
),
Expand Down

0 comments on commit 245614e

Please sign in to comment.