Skip to content

Commit

Permalink
render docs & update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Aug 21, 2024
1 parent 1599e55 commit 267f40e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
12 changes: 5 additions & 7 deletions man/staging_is_active.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions tests/testthat/test-staging_is_active.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
test_that("staging_is_active()", {
thresholds <- c("01-15", "04-15", "07-15", "10-15")
duration <- 30L
active <- c(
"2024-01-15",
"2024-01-16",
Expand All @@ -19,26 +18,24 @@ test_that("staging_is_active()", {
expect_true(
staging_is_active(
thresholds = thresholds,
duration = duration,
today = today
)
)
}
inactive <- c(
"2024-01-12",
"2024-02-14",
"2024-02-15",
"2024-04-14",
"2024-05-15",
"2024-07-12",
"2024-08-14",
"2024-08-15",
"2024-10-14",
"2024-11-14"
"2024-11-15"
)
for (today in inactive) {
expect_false(
staging_is_active(
thresholds = thresholds,
duration = duration,
today = today
)
)
Expand Down

0 comments on commit 267f40e

Please sign in to comment.