(v1.0.0.9005) info printing only in interactive mode

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-02-21 21:13:38 +01:00
1 parent 47fe8b7820
commit ea32e9916a
28 files changed
+52 -36

No files matched your search

+4 -2
View File
@@ -141,7 +141,8 @@ test_that("first isolates work", {
mutate(first = first_isolate(., "date", "patient_id",
col_mo = "mo",
col_specimen = "specimen",
filter_specimen = "something_unexisting")))
filter_specimen = "something_unexisting",
info = TRUE)))
# printing of exclusion message
expect_message(example_isolates %>%
@@ -149,7 +150,8 @@ test_that("first isolates work", {
col_mo = "mo",
col_patient_id = "patient_id",
col_testcode = "gender",
testcodes_exclude = "M"))
testcodes_exclude = "M",
info = TRUE))
# errors
expect_error(first_isolate("date", "patient_id", col_mo = "mo"))