(v1.8.1.9005) as.rsi() fix for EUCAST

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-05-10 17:01:37 +02:00
1 parent d4e22069bc
commit 680e8e7a41
21 files changed
+7475 -7454

No files matched your search

+4
View File
@@ -23,6 +23,10 @@
# how to conduct AMR data analysis: https://msberends.github.io/AMR/ #
# ==================================================================== #
# we must only have EUCAST and CLSI, because otherwise the rules in as.rsi() will fail
expect_identical(unique(gsub("[^A-Z]", "", AMR::rsi_translation$guideline)),
c("EUCAST", "CLSI"))
expect_true(as.rsi("S") < as.rsi("I"))
expect_true(as.rsi("I") < as.rsi("R"))
expect_true(is.rsi(as.rsi("S")))