speed improvement as.mo, freq title

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-10-31 12:10:49 +01:00
1 parent 3d4c4c678b
commit 9cd4ab928a
27 files changed
+289 -224

No files matched your search

+6
View File
@@ -53,4 +53,10 @@ test_that("mo_property works", {
expect_identical(mo_property("E. coli", property = "species"),
mo_species("E. coli"))
# check vector with random values
library(dplyr)
df_sample <- AMR::microorganisms %>% sample_n(100)
expect_identical(df_sample %>% pull(mo) %>% mo_fullname(),
df_sample %>% pull(fullname))
})