AI improvements for microorganisms

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-09-09 12:11:44 +02:00
1 parent 936198372e
commit 4816419f0c
5 files changed
+39 -37

No files matched your search

+7
View File
@@ -1,6 +1,13 @@
context("mo.R")
test_that("as.mo works", {
library(dplyr)
MOs <- AMR::microorganisms %>% filter(!is.na(mo))
expect_identical(as.character(MOs$mo), as.character(as.mo(MOs$mo)))
expect_identical(MOs$fullname, mo_fullname(MOs$fullname, language = "en"))
expect_identical(
as.character(as.mo(c("E. coli", "H. influenzae"))),
c("ESCCOL", "HAEINF"))