mirror of
https://github.com/msberends/AMR.git
synced 2025-12-13 07:10:29 +01:00
unit tests
This commit is contained in:
@@ -38,4 +38,10 @@ test_that("ggplot_rsi works", {
|
||||
summarise_all(count_IR) %>% as.double()
|
||||
)
|
||||
|
||||
expect_equal(colnames(getlbls(septic_patients %>% select(amcl, cipr))),
|
||||
c("Interpretation", "Antibiotic", "Value", "lbl"))
|
||||
|
||||
expect_error(ggplot_rsi(septic_patients, fun = "invalid"))
|
||||
expect_error(geom_rsi(septic_patients, fun = "invalid"))
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user