(v1.1.0.9000) CLSI as.rsi() fix, better vctrs support, new CI

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-04-29 14:33:44 +02:00
1 parent e0f4c93e82
commit b040185269
35 files changed
+938 -384

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ test_that("EUCAST rules work", {
expect_error(eucast_rules(data.frame(a = "test")))
expect_error(eucast_rules(data.frame(mo = "test"), rules = "invalid rules set"))
expect_warning(eucast_rules(data.frame(mo = "Escherichia coli", vancomycin = "S")))
expect_warning(eucast_rules(data.frame(mo = "Escherichia coli", vancomycin = "S", stringsAsFactors = TRUE)))
expect_identical(colnames(example_isolates),
colnames(suppressWarnings(eucast_rules(example_isolates))))
+7
View File
@@ -287,4 +287,11 @@ test_that("as.mo works", {
expect_warning(x[1] <- "invalid code")
expect_warning(x[[1]] <- "invalid code")
expect_warning(c(x[1], "test"))
# joining on mo class
expect_identical(class(bind_rows(example_isolates,
example_isolates,
example_isolates)$mo),
"mo")
})