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 |
|
)) |
Lines like these need to check that the expected error is being raised, not just any error
ww-inference-model/tests/testthat/test_get_stan_data.R
Lines 509 to 526 in 0360365