Skip to content

Commit

Permalink
Move assignment outside of call
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Dec 5, 2024
1 parent 0170115 commit 164652b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-list_countries.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ test_that("age_df_countries() and contact_df_countries() provide data for all li

for (s in c(2017, 2020)) {

expect_no_condition(
contacts <- contact_df_countries(list_countries(data_source = s), data_source = s)
contacts <- expect_no_condition(
contact_df_countries(list_countries(data_source = s), data_source = s)
)

expect_no_condition(
popsizes <- age_df_countries(list_countries(data_source = s))
popsizes <- expect_no_condition(
age_df_countries(list_countries(data_source = s))
)

expect_identical(nrow(contacts), nrow(popsizes) * 16L)
Expand Down

0 comments on commit 164652b

Please sign in to comment.