tests/testthat/test_KendallNeighbour.R

library(rankdist)
context("Kendall Neighbour")

rank = 1:5


test_that("Output type is correct",{
    expect_is(KendallNeighbour(rank),"matrix")
    expect_equal(nrow(KendallNeighbour(rank)),4)
    expect_equal(ncol(KendallNeighbour(rank)),5)
})


test_that("Output value is correct",{
    expect_equal_to_reference(file="KendallNeighbour.rds",KendallNeighbour(rank))
})

Try the rankdist package in your browser

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

rankdist documentation built on July 28, 2019, 1:02 a.m.