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

(v1.4.0.9036) more unit tests

This commit is contained in:
2020-12-11 12:17:23 +01:00
parent 23ddc6004b
commit 2edd3339db
17 changed files with 72 additions and 51 deletions

View File

@@ -122,6 +122,10 @@ test_that("mo_property works", {
"vanco"),
c(TRUE, FALSE, FALSE))
# with reference data
expect_equal(mo_name("test", reference_df = data.frame(col1 = "test", mo = "B_ESCHR_COLI")),
"Escherichia coli")
library(dplyr)
expect_equal(example_isolates %>% filter(mo_is_gram_negative()) %>% nrow(),
730)