Skip to content

Commit

Permalink
chore: #2546 alignment is my best friend
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 committed Dec 12, 2024
1 parent 0bf05c8 commit 9338766
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/testthat/test-derive_var_base.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ test_that("derive_var_base Test 3: only the `target` variable is added to the in
"TEST01", "PAT01", "PARAM02", 3, 8.35, NA_character_, "LAST", "Y"
)
expected_output <- tibble::tribble(
~STUDYID, ~USUBJID, ~PARAMCD, ~ASEQ, ~AVAL, ~ABLFL, ~BASETYPE, ~ANL01FL, ~BASE,
"TEST01", "PAT01", "PARAM01", 1, 10.12, "Y", "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM01", 2, 9.7, NA_character_, "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM01", 3, 15.01, NA_character_, "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM02", 1, 8.35, "Y", "LAST", "Y", 8.35,
"TEST01", "PAT01", "PARAM02", 2, NA, NA_character_, "LAST", "Y", 8.35,
"TEST01", "PAT01", "PARAM02", 3, 8.35, NA_character_, "LAST", "Y", 8.35
~STUDYID, ~USUBJID, ~PARAMCD, ~ASEQ, ~AVAL, ~ABLFL, ~BASETYPE, ~ANL01FL, ~BASE,
"TEST01", "PAT01", "PARAM01", 1, 10.12, "Y", "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM01", 2, 9.7, NA_character_, "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM01", 3, 15.01, NA_character_, "LAST", "Y", 10.12,
"TEST01", "PAT01", "PARAM02", 1, 8.35, "Y", "LAST", "Y", 8.35,
"TEST01", "PAT01", "PARAM02", 2, NA, NA_character_, "LAST", "Y", 8.35,
"TEST01", "PAT01", "PARAM02", 3, 8.35, NA_character_, "LAST", "Y", 8.35
)
actual_output <- derive_var_base(
input,
Expand Down

0 comments on commit 9338766

Please sign in to comment.