tests/testthat/test_distances.R

context("Testing dist1.cpp")

test_that("dist1", {
  expect_equal(dist1(1:10), sum(stats::dist(1:10)))
})

Try the RTCC package in your browser

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

RTCC documentation built on July 1, 2020, 7:06 p.m.