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:
@@ -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)
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user