Skip to content

Commit

Permalink
Merge pull request #18 from oxford-pharmacoepi/marta_dev
Browse files Browse the repository at this point in the history
Update test-generateMatchedCohortSet.R
  • Loading branch information
edward-burn authored Dec 6, 2023
2 parents b5d321a + f82c61b commit df88082
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-generateMatchedCohortSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ test_that("test exactMatchingCohort with a ratio bigger than 1", {
"gender_concept_id" = rep(8532,10),
"year_of_birth" = rep(1980, 10),
"day_of_birth" = rep(1, 10),
"birth_date_time" = rep(as.Date(1980,04,01),10),
"birth_date_time" = as.Date(rep("1980-04-01",10)),
"month_of_birth" = rep(4, 10)),
condition_occurrence = tibble::tibble("condition_ocurrence_id" = seq(1,10,1),
"person_id" = seq(1,10,1),
Expand Down Expand Up @@ -294,7 +294,8 @@ test_that("test exactMatchingCohort with a ratio bigger than 1", {


outc <- a[["new_cohort"]] %>%
dplyr::filter(subject_id == 5) %>% dplyr::summarise(cohort_start_date) %>% dplyr::pull() %in% c("2017-10-30","2003-01-04","2014-12-15","2010-09-09")
dplyr::filter(subject_id == 5) %>% dplyr::summarise(cohort_start_date) %>%
dplyr::pull() %in% c("2017-10-30","2003-01-04","2014-12-15","2010-09-09")
expect_true(unique(outc) == TRUE)
})

Expand Down

0 comments on commit df88082

Please sign in to comment.