Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes # 2581 enhance test coverage: derive_var_trtemfl() #2617

Merged
merged 4 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions admiral.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
bms63 marked this conversation as resolved.
Show resolved Hide resolved
ProjectId: 07f3544c-317e-4fa8-ba3b-310457396203

RestoreWorkspace: No
SaveWorkspace: No
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/derive_var_trtemfl.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
! `intensity` argument was specified but not `initial_intensity`
Either both or none of them must be specified.

# derive_var_trtemfl Test 11: error if `group_var` without `subject_keys`
# derive_var_trtemfl Test 11: error if `group_var` specified without `subject_keys`

Code
derive_var_trtemfl(adae, group_var = AEGRPID, subject_keys = NULL)
derive_var_trtemfl(adae2, group_var = AEGRPID, subject_keys = NULL)
Condition
Error in `derive_var_trtemfl()`:
! `group_var` argument was specified but not `subject_keys`
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-derive_var_trtemfl.R
jimrothstein marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ test_that("derive_var_trtemfl Test 10: error if `intensity` without `initial_int
)
})

## Test 11: error if `group_var` are specified without `subject_keys` ----
test_that("derive_var_trtemfl Test 11: error if `group_var` without `subject_keys`", {
## Test 11: error if `group_var` specified without `subject_keys` ----
test_that("derive_var_trtemfl Test 11: error if `group_var` specified without `subject_keys`", {
expect_snapshot(
derive_var_trtemfl(
adae,
adae2,
group_var = AEGRPID,
subject_keys = NULL
),
Expand Down
Loading