1
0
mirror of https://github.com/msberends/AMR.git synced 2025-12-13 03:10:23 +01:00

(v1.3.0.9034) eucast_rules summary fix

This commit is contained in:
2020-09-29 10:40:25 +02:00
parent 36ec8b0d81
commit 68e6e1e329
20 changed files with 83 additions and 44 deletions

View File

@@ -97,6 +97,12 @@ test_that("mic2rsi works", {
guideline = "EUCAST")),
"I")
# cutoffs at MIC = 8
expect_equal(as.rsi(as.mic(2), "E. coli", "ampicillin", guideline = "EUCAST 2020"),
as.rsi("S"))
expect_equal(as.rsi(as.mic(32), "E. coli", "ampicillin", guideline = "EUCAST 2020"),
as.rsi("R"))
expect_true(example_isolates %>%
mutate(amox_mic = as.mic(2)) %>%
select(mo, amox_mic) %>%