id author title date pages extension mime words sentences flesch summary cache txt cord-102817-m1l1t0e1 Lucas, T. C. Responsible modelling: Unit testing for infectious disease epidemiology 2020-08-16 .txt text/plain 6076 412 66 At the time of writing, infectious disease modellers are playing a central role in the interpretation of available data on the COVID-19 pandemic to inform policy design and evaluation [1] [2] [3] . We do not know of high profile cases of infectious disease models being found to have bugs once published, but as code is not always shared and little post-publication testing of code occurs, this likely represents a failure of detection. It is also notable that there are few texts available which demonstrate the use of unit testing to check infectious disease models. Unit testing is a formally-defined, principled framework that compares comprehensive output scenarios from code to what the programmer expected to happen ( [22] Chapter 7, [23] , [24] ). Instead we devise tests that cover standard usage as well as corner case scenarios: what do we want our function to do if given a negative number e.g. sqrt(-1), or a vector argument containing strings or missing values e.g. sqrt(c(4,"melon",NA))? ./cache/cord-102817-m1l1t0e1.txt ./txt/cord-102817-m1l1t0e1.txt