mirror of
https://github.com/msberends/AMR.git
synced 2025-07-13 03:12:11 +02:00
(v1.4.0.9039) more unit tests
This commit is contained in:
@ -92,4 +92,11 @@ test_that("counts work", {
|
||||
expect_error(count_df(c("A", "B", "C")))
|
||||
expect_error(count_df(example_isolates[, "date"]))
|
||||
|
||||
# grouping in rsi_calc_df() (= backbone of rsi_df())
|
||||
expect_true("hospital_id" %in% (example_isolates %>%
|
||||
group_by(hospital_id) %>%
|
||||
select(hospital_id, AMX, CIP, gender) %>%
|
||||
rsi_df() %>%
|
||||
colnames()))
|
||||
|
||||
})
|
||||
|
Reference in New Issue
Block a user