tests/testthat/test_slpcovis.R

## Tests for slpCOVIS
context("slpCOVIS")
load("../data/test_slpcovis.RData")
set.seed(7)
out <- slpCOVIS(st, tr, crx = TRUE, respt = FALSE, rgive = TRUE,
                xtdo = FALSE)

test_that("slpCOVIS reproduces an arbitrarily chosen short simulation.", {
    expect_equal(out$foutmat, testres$foutmat)
})
ajwills72/catlearn documentation built on Feb. 10, 2024, 4:28 a.m.