Skip to content

Commit

Permalink
Update tests/testthat/test-utils_get_data.R
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Malfait <[email protected]>
  • Loading branch information
BaptisteBR and milanmlft authored Sep 6, 2024
1 parent 3ee7c2a commit 5e0902c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-utils_get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ test_that("Test low frequency stats replacement for monthly counts", {
)
replacement <- as.double(Sys.getenv("LOW_FREQUENCY_REPLACEMENT"))
results <- .manage_low_frequency(mock_monthly_counts)
expect_true(nrow(results) == 4)
expect_true(nrow(dplyr::filter(results, person_count == 0)) == 0)
expect_equal(nrow(results), 4)
expect_equal(sum(results$person_count == 0), 0)
expect_true(nrow(dplyr::filter(results, person_count == 1)) == 0)
expect_true(nrow(dplyr::filter(results, person_count == replacement)) == 2)
expect_true(nrow(dplyr::filter(results, person_count == 1000)) == 2)
Expand Down

0 comments on commit 5e0902c

Please sign in to comment.