Skip to content

Commit 03a30d0

Browse files
committed
Fix unit test
1 parent fe94bc3 commit 03a30d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-getDbCohortMethodData.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ if (!isFALSE(tryCatch(find.package("Eunomia"), error = function(e) FALSE))) {
11211121
inner_join(person, by = join_by(subjectId == personId)) |>
11221122
mutate(dateOfBirth = ISOdate(yearOfBirth, monthOfBirth, dayOfBirth)) |>
11231123
mutate(age = floor(as.numeric(difftime(cohortStartDate, dateOfBirth, units = "days")) / 365.25)) |>
1124-
filter(age >= minAge, age <= maxAge, genderConceptId == 8532)
1124+
filter(age >= 0, age <= 0, genderConceptId == 8532)
11251125

11261126

11271127
expect_equal(select(arrange(cohorts2, subjectId, cohortStartDate), cohortDefinitionId, subjectId, cohortStartDate),

0 commit comments

Comments
 (0)