Skip to content

Commit 77048b3

Browse files
nmdefriesdshemetov
andauthored
check when issues is an epirange
Co-authored-by: Dmitry Shemetov <dshemetov@ucdavis.edu>
1 parent 0fa2491 commit 77048b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testthat/test-utils.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,9 @@ test_that("check_is_cachable can handle both str and date inputs of various leng
5858
epidata_call$params$as_of <- NULL
5959
epidata_call$params$issues <- c(as.Date("2022-01-01"), as.Date("2022-02-01"))
6060
expect_no_error(check_is_cachable(epidata_call, fetch_args))
61+
62+
# issues epirange
63+
epidata_call$params$as_of <- NULL
64+
epidata_call$params$issues <- epirange(as.Date("2022-01-01"), as.Date("2022-02-01"))
65+
expect_no_error(check_is_cachable(epidata_call, fetch_args))
6166
})

0 commit comments

Comments
 (0)