tests/testthat/test_bandmat.R

testthat::context("band matrix likelihood")
testthat::test_that("band matrix likelihood runs without error", {
  out <- magi:::bandTest(system.file("testdata/data_band.txt",package="magi"))
  testthat::expect_equal(out, -655203.16255410481244, tolerance = 1e-3)
})

Try the magi package in your browser

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

magi documentation built on June 22, 2024, 6:45 p.m.