tests/testthat/test-omegaCubeConvert.R

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 rxode2random package in your browser

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

rxode2random documentation built on May 29, 2024, 7:30 a.m.