From edc0cb8191cc94d0c5da157e74943dc5f0f0dbf2 Mon Sep 17 00:00:00 2001 From: "Dylan H. Morris" Date: Thu, 12 Dec 2024 19:42:42 -0500 Subject: [PATCH] Stronger assertions for date validation --- tests/testthat/test_epiweek_to_date.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test_epiweek_to_date.R b/tests/testthat/test_epiweek_to_date.R index 804658f..5652ef4 100644 --- a/tests/testthat/test_epiweek_to_date.R +++ b/tests/testthat/test_epiweek_to_date.R @@ -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( @@ -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(