1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-04 13:29:46 +02:00

(v1.1.0.9004) lose dependencies

This commit is contained in:
2020-05-16 13:05:47 +02:00
parent 9fce546901
commit 7f3da74b17
111 changed files with 3211 additions and 2345 deletions

View File

@@ -100,14 +100,12 @@ test_that("mo_property works", {
expect_warning(mo_name(c("B_ESCHR_COL", "B_STPHY_AUR")))
# outcome of mo_fullname must always return the fullname from the data set
library(dplyr)
x <- microorganisms %>%
transmute(mo,
# fullname from the original data:
f1 = fullname,
# newly created fullname based on MO code:
f2 = mo_fullname(mo, language = "en")) %>%
filter(f1 != f2)
expect_equal(nrow(x), 0)
x <- data.frame(mo = microorganisms$mo,
# fullname from the original data:
f1 = microorganisms$fullname,
# newly created fullname based on MO code:
f2 = mo_fullname(microorganisms$mo, language = "en"),
stringsAsFactors = FALSE)
expect_equal(nrow(subset(x, f1 != f2)), 0)
})