Skip to content

Commit

Permalink
test: #1822 add regexp for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed May 11, 2023
1 parent 0b23e62 commit 1f01420
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-derive_param_extreme_record.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ test_that("derive_param_extreme_record Test 2: Error given when order variable i
PARAMCD = "FIRSTACT",
PARAM = "First Anti-Cancer Therapy"
)
)
),
regexp = "Required variable `ADT2` is missing"
)
})

Expand Down Expand Up @@ -148,6 +149,7 @@ test_that("derive_param_extreme_record Test 3: Error given when sources is not i
PARAMCD = "FIRSTACT",
PARAM = "First Anti-Cancer Therapy"
)
)
),
regexp = "Each element of `sources` must be an object of class/type 'records_source' but the following are not:"
)
})

0 comments on commit 1f01420

Please sign in to comment.