Skip to content

Commit

Permalink
edit the unvalidated test (temporal solution), we will remove these u…
Browse files Browse the repository at this point in the history
…nvalidated tests in the future
  • Loading branch information
LittleBeannie committed Feb 27, 2024
1 parent 178de5d commit efcccb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testthat/test-unvalidated-sim_gs_n.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test_that("Test 1: regular logrank test", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

test_that("Test 2: weighted logrank test by FH(0, 0.5)", {
Expand All @@ -52,7 +52,7 @@ test_that("Test 2: weighted logrank test by FH(0, 0.5)", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

test_that("Test 3: weighted logrank test by MB(6)", {
Expand All @@ -76,7 +76,7 @@ test_that("Test 3: weighted logrank test by MB(6)", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

test_that("Test 4: weighted logrank test by early zero (6)", {
Expand All @@ -100,7 +100,7 @@ test_that("Test 4: weighted logrank test by early zero (6)", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

test_that("Test 5: RMST", {
Expand Down Expand Up @@ -139,7 +139,7 @@ test_that("Test 5: RMST", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

test_that("Test 6: maxcombo (FH(0,0) + FH(0, 0.5))", {
Expand All @@ -164,5 +164,5 @@ test_that("Test 6: maxcombo (FH(0,0) + FH(0, 0.5))", {
cut_date = c(24, 32, 45, 24, 32, 46.219327415802894, 24, 32, 50.86585486314699),
sim_id = rep(1:3, each = 3L)
)
expect_equal(observed, expected)
expect_equal(observed |> dplyr::select(-c(n, event)), expected)
})

0 comments on commit efcccb9

Please sign in to comment.