Skip to content

Commit 79ab123

Browse files
author
LiNk-NY
committed
update tests for follow_ups
1 parent 64933db commit 79ab123

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/testthat/test_clinical.R

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ test_that("clinical data is structured properly", {
88
)
99
expect_true(
1010
all(
11-
c("demographic", "diagnoses", "exposures", "main") %in%
12-
names(clinical_data)
11+
c("demographic", "diagnoses", "exposures", "follow_ups", "main")
12+
%in%
13+
names(clinical_data)
1314
)
1415
)
1516

16-
expect_true(
17-
all(
18-
vapply(clinical_data, nrow, integer(1L)) >= sizen
17+
expect_identical(
18+
vapply(clinical_data, nrow, integer(1L)),
19+
c(
20+
demographic = 3L, diagnoses = 2L, exposures = 0L,
21+
follow_ups = 0L, main = 3L
1922
)
2023
)
2124
expect_true(

0 commit comments

Comments
 (0)