1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 09:11:51 +02:00

unit tests

This commit is contained in:
2018-08-23 01:01:50 +02:00
parent da5379c881
commit 8ab93b6688
3 changed files with 5 additions and 2 deletions

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)))