tests/testthat/test-omegaCubeConvert.R

rxTest({
  test_that("test omegaCubeConvert", {

    matLst <- cvPost(10, lotri::lotri(a+b~c(1, 0.25, 1)), 3)
    expect_true(inherits(matLst, "list"))

    matCube <- swapMatListWithCube(matLst)
    expect_length(dim(matCube), 3L)

    matLst2 <- swapMatListWithCube(matCube)

    expect_identical(matLst2, matLst)
  })
})

Try the rxode2 package in your browser

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

rxode2 documentation built on Oct. 30, 2024, 9:06 a.m.