tests/testthat/test-optimal_return_doc.R

test_that("Type binary", {
  expect_type(optimal_return_doc(type = "binary"), 
              "character")
  })

test_that("multitrial_tte",{
  expect_type(optimal_return_doc(type = "binary",setting = "bias"),
              "character")
})

test_that("multitrial_tte",{
  expect_type(optimal_return_doc(type = "tte",setting = "multitrial"),
              "character")
})

test_that("multitrial_tte",{
  expect_type(optimal_return_doc(type = "tte",setting = "multiarm"),
               "character")
})

test_that("multiple_normal",{
  expect_type(optimal_return_doc(type = "normal",setting = "multiple"),
              "character")
})

Try the drugdevelopR package in your browser

Any scripts or data that you put into this service are public.

drugdevelopR documentation built on June 22, 2024, 12:27 p.m.