Skip to content

Commit

Permalink
Updated hpg function tests when deprecated "version = 'Y'" used.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragla committed Feb 4, 2025
1 parent e2f4a01 commit 2efe854
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-eqhpg.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ test_that("eq5dhpg using version='Y' is deprecated", {
rlang::local_options(lifecycle_verbosity = "error")
expect_error(hpg(pre, post, country = "Brazil", version="Y", type="CW", no.problems = F))
})

test_that("eq5d using version='Y' still works", {
rlang::local_options(lifecycle_verbosity = "quiet")
expect_equal(as.character(hpg(pre, post, country = "Brazil", version="Y", type="CW", no.problems = F)[2,]), c(158, 60, "Improve"))
})

0 comments on commit 2efe854

Please sign in to comment.