Skip to content

Commit d2eb2f1

Browse files
committed
add tests
1 parent 7c8e218 commit d2eb2f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testthat/test-developer-to_integer.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ test_that("The statistcial information under null equals to event/4 udner equal
4545
lower = gs_spending_bound,
4646
lpar = list(sf = gsDesign::sfHSD, total_spend = beta, param = -4) ,
4747
test_lower = c(TRUE, FALSE,FALSE),
48-
binding = FALSE) |> to_integer()
48+
binding = FALSE
49+
) |>
50+
to_integer()
4951

50-
expect_true(all(x$analysis$info - x$analysis$event/4 == 0))
52+
expect_true(all(x$analysis$info0 - x$analysis$event / 4 == 0))
5153
})

0 commit comments

Comments
 (0)