mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 06:02:01 +02:00
removed ratio, better rsi_calc, update for freq
This commit is contained in:
@ -4,11 +4,12 @@ context("mdro.R")
|
||||
test_that("MDRO works", {
|
||||
library(dplyr)
|
||||
|
||||
outcome <- MDRO(septic_patients, "EUCAST", info = FALSE)
|
||||
outcome <- suppressWarnings(MDRO(septic_patients, "EUCAST", info = TRUE))
|
||||
outcome <- suppressWarnings(EUCAST_exceptional_phenotypes(septic_patients, info = TRUE))
|
||||
# check class
|
||||
expect_equal(outcome %>% class(), c('ordered', 'factor'))
|
||||
|
||||
outcome <- MDRO(septic_patients, "nl", info = FALSE)
|
||||
outcome <- suppressWarnings(MDRO(septic_patients, "nl", info = TRUE))
|
||||
# check class
|
||||
expect_equal(outcome %>% class(), c('ordered', 'factor'))
|
||||
|
||||
@ -18,4 +19,7 @@ test_that("MDRO works", {
|
||||
|
||||
expect_equal(BRMO(septic_patients, info = FALSE), MDRO(septic_patients, "nl", info = FALSE))
|
||||
|
||||
# still working on German guidelines
|
||||
expect_error(suppressWarnings(MRGN(septic_patients, info = TRUE)))
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user