Skip to content

Commit

Permalink
fix tests errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffeaton committed Nov 17, 2024
1 parent 11595fa commit 262bf22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-01-run-model.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ test_that("exceeding max_iterations raises convergence warning", {
expect_length(out$warnings, 3)

expect_equal(out$warnings[[1]]$text,
paste0("Naomi subnational data not equal to Spectrum national data. Check table on review inputs tab for: \nnumber_on_art: 2011;2012;2013;2014;2015;2016;2017;2018"))
paste0("Naomi subnational data not equal to Spectrum national data. Check table on review inputs tab for: \nnumber_on_art: 2011;2012;2013;2014;2015;2016;2017;2018;2019;2020;2021;2022;2023"))

expect_equal(out$warnings[[3]]$text,
paste0("Convergence error: iteration limit reached without convergence (10)"))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-03-model-fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test_that("model fits with different combination of ANC prevalence and ANC ART d
demo_survey_hiv_indicators,
anc_testing = ancdat1,
demo_art_number,
prev_survey_ids = c("DEMO2016PHIA", "DEMO2015DHS"),
prev_survey_ids = "DEMO2016PHIA",
artcov_survey_ids = "DEMO2016PHIA",
recent_survey_ids = "DEMO2016PHIA",
anc_prev_year_t1 = 2016,
Expand Down

0 comments on commit 262bf22

Please sign in to comment.