mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 14:21:48 +02:00
(v1.2.0.9035) as.mo() speed improvement
This commit is contained in:
@ -38,6 +38,7 @@ test_that("data sets are valid", {
|
||||
expect_true(all(rsi_translation$mo %in% microorganisms$mo))
|
||||
expect_false(any(is.na(microorganisms.codes$code)))
|
||||
expect_false(any(is.na(microorganisms.codes$mo)))
|
||||
expect_false(any(microorganisms.translation$mo_old %in% microorganisms$mo))
|
||||
|
||||
# antibiotic names must always be coercible to their original AB code
|
||||
expect_identical(antibiotics$ab, as.ab(antibiotics$name))
|
||||
@ -62,10 +63,7 @@ test_that("creation of data sets is valid", {
|
||||
olddf <- create_MO.old_lookup()
|
||||
expect_true(all(c("fullname", "fullname_new", "ref", "prevalence",
|
||||
"fullname_lower", "g_species") %in% colnames(olddf)))
|
||||
|
||||
old <- make_trans_tbl()
|
||||
expect_gt(length(old), 0)
|
||||
|
||||
|
||||
})
|
||||
|
||||
test_that("CoL version info works", {
|
||||
|
Reference in New Issue
Block a user