Skip to content

Commit

Permalink
Clarify test rationale
Browse files Browse the repository at this point in the history
  • Loading branch information
billdenney committed Sep 13, 2021
1 parent 1f3f033 commit ce4efef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-standardize_ids.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test_that("standardize_sdtm_id alternate paths", {
standardize_sdtm_id(data=data.frame(STUDYID="A", SUBJID="B", USUBJID=NA_character_), allow_missing_id=TRUE),
data.frame(STUDYID="A", USUBJID=NA_character_, SUBJID=c("B"))
)
# Do not create "[STUDYID]-NA" values for USUBJID
expect_equal(
standardize_sdtm_id(data=data.frame(STUDYID="A", SUBJID=c("B", NA_character_)), allow_missing_id=TRUE),
data.frame(STUDYID="A", USUBJID=c("A-B", NA_character_), SUBJID=c("B", NA_character_))
Expand Down

0 comments on commit ce4efef

Please sign in to comment.