Skip to content

Commit

Permalink
Merge pull request #280 from tidymodels/typo-test-description
Browse files Browse the repository at this point in the history
fix typo in test description
  • Loading branch information
hfrick authored Dec 18, 2023
2 parents 7b2613d + 883e896 commit 0382710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/proportional_hazards-glmnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
Code
f_pred_2 <- predict(f_fit_2, lung2, type = "survival", eval_time = c(100, 300))

# `fix_xy()` errors with stratification
# `fit_xy()` errors with stratification

Code
fit_xy(spec, x = lung_x, y = lung_y_s)
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-proportional_hazards-glmnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ test_that("predictions with strata and dot in formula", {

# fit via matrix interface ------------------------------------------------

test_that("`fix_xy()` works with matrix input", {
test_that("`fit_xy()` works with matrix input", {
lung2 <- lung[-14, ]
lung_x <- as.matrix(lung2[, c("age", "ph.ecog")])
lung_y <- Surv(lung2$time, lung2$status)
Expand Down Expand Up @@ -1211,7 +1211,7 @@ test_that("`fix_xy()` works with matrix input", {
expect_equal(f_pred_lp, xy_pred_lp)
})

test_that("`fix_xy()` works with data frame input", {
test_that("`fit_xy()` works with data frame input", {
lung2 <- lung[-14, ]
lung_x <- lung2[, c("age", "ph.ecog")]
lung_y <- data.frame(surv = Surv(lung2$time, lung2$status))
Expand Down Expand Up @@ -1247,7 +1247,7 @@ test_that("`fix_xy()` works with data frame input", {
expect_equal(f_pred_lp, xy_pred_lp)
})

test_that("`fix_xy()` errors with stratification", {
test_that("`fit_xy()` errors with stratification", {
lung2 <- lung[-14, ]
lung_x <- as.matrix(lung2[, c("age", "ph.ecog")])
lung_y <- Surv(lung2$time, lung2$status)
Expand Down

0 comments on commit 0382710

Please sign in to comment.