Skip to content

Make error and warning assertions in test suite more specific #280

Description

@dylanhmorris

Lines like these need to check that the expected error is being raised, not just any error

expect_error(get_stan_data(
input_count_data,
input_ww_data,
date_time_spine,
lab_site_site_spine,
site_subpop_spine,
lab_site_subpop_spine,
last_count_data_date,
first_count_data_date,
forecast_date,
forecast_horizon,
calibration_time,
generation_interval,
inf_to_count_delay,
infection_feedback_pmf = c(0.5, 0.4, 0.2),
params,
include_ww
))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions