unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-08-23 01:01:50 +02:00
1 parent da5379c881
commit 8ab93b6688
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -22,6 +22,9 @@ test_that("counts work", {
pull(combination),
c(192, 440, 184, 474))
expect_equal(septic_patients %>% select(amox, cipr) %>% count_df(translate_ab = "official") %>% nrow(),
6)
# warning for speed loss
expect_warning(count_R(as.character(septic_patients$amcl)))
expect_warning(count_I(as.character(septic_patients$amcl)))