tests/testthat/test-developer-gs_spending_bound.R

test_that("gs_spending_bound() does not execute as expected", {
  expect_true(is.numeric(b <- gs_spending_bound()))
  expect_true(is.numeric(a <- gs_spending_bound(efficacy = FALSE)))
  hgm1_0 <- h1(theta = 0, I = 1, a = a, b = b)
  hgm1_1 <- h1(theta = .1, I = 1, a = a, b = b)
  expect_true(is.numeric(b2 <- gs_spending_bound(k = 2, theta = 0, hgm1 = hgm1_0)))
  expect_true(is.numeric(a2 <- gs_spending_bound(k = 2, theta = .1, hgm1 = hgm1_1, efficacy = FALSE)))
})
keaven/gsDesign2 documentation built on Oct. 13, 2022, 8:42 p.m.