(v1.4.0.9039) more unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-12-13 20:44:32 +01:00
1 parent ac22b8d5c1
commit 203bc20eb0
27 files changed
+100 -63

No files matched your search

+7
View File
@@ -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()))
})