1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-13 00:32:34 +02:00

(v1.7.1.9028) fix unit test

This commit is contained in:
2021-08-20 00:08:31 +02:00
parent 41f35c73cd
commit e4de7f5055
7 changed files with 15 additions and 16 deletions

View File

@ -121,9 +121,9 @@ expect_equal(mo_name("test", reference_df = data.frame(col1 = "test", mo = "B_ES
"Escherichia coli")
if (AMR:::pkg_is_available("dplyr")) {
expect_equal(example_isolates %>% filter(mo_is_gram_negative()) %>% nrow(),
730)
730, tolerance = 0.5)
expect_equal(example_isolates %>% filter(mo_is_gram_positive()) %>% nrow(),
1238)
1238, tolerance = 0.5)
expect_equal(example_isolates %>% filter(mo_is_intrinsic_resistant(ab = "Vancomycin")) %>% nrow(),
710)
710, tolerance = 0.5)
}