Skip to content

Commit

Permalink
Improve test description
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Funk <[email protected]>
  • Loading branch information
jamesmbaazam and sbfnk authored Mar 5, 2024
1 parent 7ab6627 commit f5ab06c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-adjust_infection_to_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test_that("adjust_infection_to_report can correctly handle a mapping with a day
expect_true(all(!is.na(reports$cases)))
})

test_that("deprecation warnings are caught", {
test_that("deprecated functions are deprecated", {
# define example cases
cases <- data.table::copy(example_confirmed)[, cases := as.integer(confirm)]
expect_deprecated(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("distributions are the same in R and stan", {
expect_equal(pmf_r_gamma, pmf_stan_gamma)
})

test_that("deprecation warnins are caught", {
test_that("deprecated functions are deprecated", {
delay_fn <- function(n, dist, cum) {
pgamma(n + 0.9999, 2, 1) - pgamma(n - 1e-5, 2, 1)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-report_cases.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_that("report_cases can simulate infections forward", {
set.seed(Sys.time())
})

test_that("deprecated warnings are caught", {
test_that("deprecated functions are deprecated", {
cases <- example_confirmed[1:40]
# get example delays
#' # Instead of running them model we use example
Expand Down

0 comments on commit f5ab06c

Please sign in to comment.