1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 14:21:57 +02:00

unit tests

This commit is contained in:
2022-12-20 22:18:50 +01:00
parent f0a2cdbf5e
commit 6f4bb603ec
9 changed files with 57 additions and 69 deletions

View File

@ -65,8 +65,6 @@ if (AMR:::pkg_is_available("tibble", also_load = FALSE)) {
}
df <- AMR:::AMR_env$MO_lookup
expect_true(nrow(df[which(df$prevalence == 1), , drop = FALSE]) < nrow(df[which(df$prevalence == 2), , drop = FALSE]))
expect_true(nrow(df[which(df$prevalence == 1), , drop = FALSE]) < nrow(df[which(df$prevalence == 3), , drop = FALSE]))
expect_true(all(c(
"mo", "fullname", "status", "kingdom", "phylum", "class", "order",
"family", "genus", "species", "subspecies", "rank", "ref", "source",