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)
  })
})
nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.