(v1.5.0.9015) unit test fix, grouped first isolates

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2021-02-04 16:48:16 +01:00
1 parent 2eca8c3f01
commit 8fda473e49
44 files changed
+239 -168

No files matched your search

+5
View File
@@ -212,4 +212,9 @@ test_that("first isolates work", {
# only one isolate, so return fast
expect_true(first_isolate(data.frame(mo = "Escherichia coli", date = Sys.Date(), patient = "patient"), info = TRUE))
# groups
x <- example_isolates %>% group_by(ward_icu) %>% mutate(first = first_isolate())
y <- example_isolates %>% group_by(ward_icu) %>% mutate(first = first_isolate(.))
expect_identical(x, y)
})