mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 07:10:50 +01:00
CI tests
This commit is contained in:
1 parent
0444c4ed9d
commit
38a4421450
36 files changed
+475
-213
No files matched your search
@@ -51,8 +51,7 @@ test_that("counts work", {
|
||||
# count_df
|
||||
expect_equal(
|
||||
septic_patients %>% select(AMX) %>% count_df() %>% pull(Value),
|
||||
c(septic_patients$AMX %>% count_S(),
|
||||
septic_patients$AMX %>% count_I(),
|
||||
c(septic_patients$AMX %>% count_SI(),
|
||||
septic_patients$AMX %>% count_R())
|
||||
)
|
||||
expect_equal(
|
||||
@@ -60,6 +59,12 @@ test_that("counts work", {
|
||||
c(septic_patients$AMX %>% count_S(),
|
||||
septic_patients$AMX %>% count_IR())
|
||||
)
|
||||
expect_equal(
|
||||
septic_patients %>% select(AMX) %>% count_df(combine_SI = FALSE) %>% pull(Value),
|
||||
c(septic_patients$AMX %>% count_S(),
|
||||
septic_patients$AMX %>% count_I(),
|
||||
septic_patients$AMX %>% count_R())
|
||||
)
|
||||
|
||||
# warning for speed loss
|
||||
expect_warning(count_R(as.character(septic_patients$AMC)))
|
||||
|
||||
Reference in new issue
Block a user