Skip to content

Commit

Permalink
removed wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsantiagoquevedo committed Nov 24, 2024
1 parent c2d1635 commit aeb1db3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/testthat/test-coh_match_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@ matched_cohort$censoring_pair <- as.Date(match_pair_info(


#### Tests for match_cohort_() ####
# Test for warning from MatchIt
test_that("`match_cohort_`: warning", {
expect_warning(match_cohort_(
# match_cohort_ can produce warnings for few units. This are
# ignored in this test
data_set = sample_cohort_s,
vacc_status_col = "vaccine_status",
exact = c("sex", "age")
),
regexp = paste0("Fewer control units than treated units in some `exact` ",
"strata; not all treated units will get a match."
)
)
})
# Test for basic expectations - all provided
test_that("`match_cohort`: basic expectations - all provided", {
matched_cohort <- capture_warnings(match_cohort_(
Expand Down

0 comments on commit aeb1db3

Please sign in to comment.