Skip to content

Commit

Permalink
#169 now passing all tests for simulate_serosurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
ben18785 committed May 16, 2024
1 parent 3ce4bbf commit 29981ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-simulate_serosurvey.R
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ test_that("simulate_serosurvey_age_and_time_model input validation", {

# Test with non-dataframe foi dataframe
expect_error(simulate_serosurvey_age_and_time_model(list(), survey_features),
"foi must be a dataframe with columns foi and age.")
"foi must be a dataframe with columns foi, age and year.")

# Test with non-dataframe survey_features dataframe
expect_error(simulate_serosurvey_age_and_time_model(foi_df, list()),
Expand Down Expand Up @@ -654,3 +654,4 @@ test_that("simulate_serosurvey handles invalid model inputs", {
expect_error(simulate_serosurvey("invalid_model", foi_df, survey_features),
"model must be one of 'age', 'time', or 'age-time'.")
})

0 comments on commit 29981ec

Please sign in to comment.