mirror of
https://github.com/msberends/AMR.git
synced 2026-11-17 10:20:48 +01:00
speed improvement as.mo, freq title
This commit is contained in:
1 parent
3d4c4c678b
commit
9cd4ab928a
27 files changed
+289
-224
No files matched your search
@@ -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))
|
||||
|
||||
})
|
||||
Reference in new issue
Block a user