Skip to content

Commit

Permalink
fix aggregate time series tests for additional data years
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffeaton committed Nov 17, 2024
1 parent cff6d12 commit 11595fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion man/demo_anc_testing.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat/test-input-time-series.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ test_that("ART data can be aggregated when avalible at different admin levels",
dplyr::summarise(n = dplyr::n(), .groups = "drop")


expect_equal(unique(check2$n), 16)
expect_equal(unique(check2$n), 26)

# (3) Data provided at more than one level for different years
# Expected behavior - aggregate up from lowestnlevel available at each year
Expand Down Expand Up @@ -387,7 +387,7 @@ test_that("ANC data can be aggregated when avalible at different admin levels",
dplyr::summarise(n = dplyr::n(), .groups = "drop")


expect_equal(unique(check2$n), 8)
expect_equal(unique(check2$n), 13)

# (3) Data provided at more than one level for different years
# Expected behavior - aggregate up from lowest level available at each year
Expand Down

0 comments on commit 11595fa

Please sign in to comment.