tests/testthat/test_slpdiva.R

## Tests for slpDIVA
context("slpDIVA")
    ## Test based on a Type IV Shepard et al.(1961) problem.
load("../data/test_slpdiva.RData")
tout <- slpDIVA(st,tr)

test_that("slpDIVA reproduces a Shepard et al. (1961) Type IV simulation.", {
    expect_equal(tout$out[,1], cor.out)
})


    

Try the catlearn package in your browser

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

catlearn documentation built on April 4, 2023, 5:12 p.m.