Skip to content

Commit

Permalink
Stronger assertions for date validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Dec 13, 2024
1 parent 3321cd5 commit edc0cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_epiweek_to_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_that(paste0(
"every epiweek in 1:52 for every epiyear ",
"in 1800:2200, for every day of the epiweek"
), {
expect_no_error(
expect_no_warning(
with_usa_dates <- schema |>
dplyr::mutate(
date = epiweek_to_date(
Expand All @@ -30,7 +30,7 @@ test_that(paste0(
"every epiweek in 1:52 for every epiyear ",
"in 1800:2200, for every day of the epiweek"
), {
expect_no_error(
expect_no_warning(
with_iso_dates <- schema |>
dplyr::mutate(
date = epiweek_to_date(
Expand Down

0 comments on commit edc0cb8

Please sign in to comment.