tests/testthat/test_bcaPrint.R

# Tests "bcaPrint" function
context("print (0,1) matrix and mass vector ofa bca")
library(dst)
test_that("bcaPrint_1", {
  # T1 x must be of class bcaspec. 
  x1 <- list(f=matrix(c(1,0,0,1,1,1),nrow=2, byrow = TRUE), m=c(0.6, 0.4),  cnames = c("a", "b", "c"),  infovarnames = "y1", varnb = 1)
  expect_error(nzdsr(x1) , "Input argument not of class bcaspec.")
})

Try the dst package in your browser

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

dst documentation built on Nov. 16, 2023, 5:08 p.m.