Skip to content

Commit

Permalink
Update test-restrictToFirstEntry.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovemane committed Dec 6, 2023
1 parent b9f9440 commit 65b6be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-restrictToFirstEntry.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test_that("test restrict to first entry works", {
dplyr::pull(cohort_start_date) == c("2020-09-20", "2020-09-20")))

expect_true(all(cdm$cohort1 |> CohortConstructor::restrictToFirstEntry() |>
dplyr::pull(subject_id) == c(1,2)))
dplyr::pull(subject_id) %in% c(1,2)))

expect_true(all(cdm$cohort2 |> CohortConstructor::restrictToFirstEntry() |>
dplyr::pull(cohort_start_date) == c("2020-09-20", "2020-09-20")))
Expand Down

0 comments on commit 65b6be0

Please sign in to comment.