mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 12:22:01 +02:00
(v1.1.0.9004) lose dependencies
This commit is contained in:
@ -51,17 +51,17 @@ test_that("data sets are valid", {
|
||||
})
|
||||
|
||||
test_that("creation of data sets is valid", {
|
||||
DT <- make_DT()
|
||||
expect_lt(nrow(DT[prevalence == 1]), nrow(DT[prevalence == 2]))
|
||||
expect_lt(nrow(DT[prevalence == 2]), nrow(DT[prevalence == 3]))
|
||||
df <- create_MO_lookup()
|
||||
expect_lt(nrow(df[which(df$prevalence == 1), ]), nrow(df[which(df$prevalence == 2), ]))
|
||||
expect_lt(nrow(df[which(df$prevalence == 2), ]), nrow(df[which(df$prevalence == 3), ]))
|
||||
expect_true(all(c("mo", "fullname",
|
||||
"kingdom", "phylum", "class", "order", "family", "genus", "species", "subspecies",
|
||||
"rank", "col_id", "species_id", "source", "ref", "prevalence",
|
||||
"kingdom_index", "fullname_lower", "g_species") %in% colnames(DT)))
|
||||
"kingdom_index", "fullname_lower", "g_species") %in% colnames(df)))
|
||||
|
||||
oldDT <- make_oldDT()
|
||||
olddf <- create_MO.old_lookup()
|
||||
expect_true(all(c("col_id", "col_id_new", "fullname", "ref", "prevalence",
|
||||
"fullname_lower", "g_species") %in% colnames(oldDT)))
|
||||
"fullname_lower", "g_species") %in% colnames(olddf)))
|
||||
|
||||
old <- make_trans_tbl()
|
||||
expect_gt(length(old), 0)
|
||||
|
Reference in New Issue
Block a user