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

cfta streptococci, codecov.yml

This commit is contained in:
2019-04-09 14:59:17 +02:00
parent cffb7787d8
commit 461eec9bac
18 changed files with 203 additions and 114 deletions

View File

@ -53,4 +53,32 @@ test_that("mdro works", {
# still working on German guidelines
expect_error(suppressWarnings(mrgn(septic_patients, info = TRUE)))
# test Dutch P. aeruginosa MDRO
expect_equal(suppressWarnings(
as.character(mdro(data.frame(mo = as.mo("P. aeruginosa"),
cfta = "S",
cipr = "S",
mero = "S",
imip = "S",
gent = "S",
tobr = "S",
pita = "S"),
country = "nl",
col_mo = "mo",
info = FALSE))
), "Negative")
expect_equal(suppressWarnings(
as.character(mdro(data.frame(mo = as.mo("P. aeruginosa"),
cefta = "R",
cipr = "R",
mero = "R",
imip = "R",
gent = "R",
tobr = "R",
pita = "R"),
country = "nl",
col_mo = "mo",
info = FALSE))
), "Positive")
})