First checks that the given name is indeed in ver_chaps
,
and if so, checks whether that entry in ver_chaps
matches
the given start
and end
.
expect_chap_equal(x, start, end, ver_chaps, ...)expect_icd10_sub_chap_equal(x, start, end, ...)
expect_icd9_sub_chap_equal(x, start, end, ...)
name of a chapter
ICD code
ICD code
list with each member being a start-end pair, and names being the chapter names
arguments passed to expect_true
in testthat package