mirror of
https://github.com/msberends/AMR.git
synced 2025-12-15 09:10:25 +01:00
CI tests
This commit is contained in:
@@ -101,8 +101,7 @@ test_that("portions works", {
|
||||
# portion_df
|
||||
expect_equal(
|
||||
septic_patients %>% select(AMX) %>% portion_df() %>% pull(Value),
|
||||
c(septic_patients$AMX %>% portion_S(),
|
||||
septic_patients$AMX %>% portion_I(),
|
||||
c(septic_patients$AMX %>% portion_SI(),
|
||||
septic_patients$AMX %>% portion_R())
|
||||
)
|
||||
expect_equal(
|
||||
@@ -110,6 +109,12 @@ test_that("portions works", {
|
||||
c(septic_patients$AMX %>% portion_S(),
|
||||
septic_patients$AMX %>% portion_IR())
|
||||
)
|
||||
expect_equal(
|
||||
septic_patients %>% select(AMX) %>% portion_df(combine_SI = FALSE) %>% pull(Value),
|
||||
c(septic_patients$AMX %>% portion_S(),
|
||||
septic_patients$AMX %>% portion_I(),
|
||||
septic_patients$AMX %>% portion_R())
|
||||
)
|
||||
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user