epiverse-trace / finalsize

R package to calculate the final size of an SIR epidemic in populations with heterogeneity in social contacts and disease susceptibility
https://epiverse-trace.github.io/finalsize/
Other
11 stars 7 forks source link

Add error/message cases to basic tests #24

Closed pratikunterwegs closed 2 years ago

pratikunterwegs commented 2 years ago

It would be very useful to test that errors / warnings / messages (currently, I think only errors) do happen when they are supposed to, with the correct message. See this for an example.

_Originally posted by @thibautjombart in https://github.com/epiverse-trace/finalsize/pull/19#discussion_r962741990_