tests/testthat/test-double.R

context("Double Wishart")
x <- seq(0, 1, length.out = 50)

test_that("no error in double wishart", {
    y1 <- try(doubleWishart(x, p = 10, n = 10, m = 200),
              silent = TRUE)
    y2 <- try(doubleWishart(x, p = 10, n = 10, m = 200,
                            type = "double"),
              silent = TRUE)
    y3 <- try(doubleWishart(x, p = 10, n = 10, m = 200,
                            type = "multiple"),
              silent = TRUE)

    expect_false(inherits(y1, "try-error"))
    expect_false(inherits(y2, "try-error"))
    expect_false(inherits(y3, "try-error"))
})

Try the rootWishart package in your browser

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

rootWishart documentation built on May 2, 2019, 3:42 p.m.