Skip to content

Commit

Permalink
Test coxph (#1365)
Browse files Browse the repository at this point in the history
══ Failed tests
════════════════════════════════════════════════════════════════
── Failure ('test-coxph.R:56:3'): try_car_anova works correctly
────────────────
  Snapshot of code has changed:
  old vs new
    Code
      res
    Output
  -   [1] 1.0000000 1.0000000 0.9678110 0.3970066 0.3252267 0.5286392
  +   [1] 1.0000000 0.7521316 0.3858022
  
  * Run `testthat::snapshot_accept('coxph')` to accept the change.
* Run `testthat::snapshot_review('coxph')` to interactively review the
change.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
shajoezhu and github-actions[bot] authored Dec 23, 2024
1 parent a79dffd commit a52216e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-coxph.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ testthat::test_that("estimate_coef works correctly", {
})

testthat::test_that("try_car_anova works correctly", {
testthat::skip_if(packageVersion("survival") >= "3.8-3",
message = "Skip test is version is greater than 3.8-3, breaking change"
)

mod <- survival::coxph(
formula = survival::Surv(time = futime, event = fustat) ~ factor(rx) + survival::strata(ecog.ps),
data = survival::ovarian
Expand Down

0 comments on commit a52216e

Please sign in to comment.