tests/testthat/test_calcDice.R

library(epos)
context("test_calcDice")

test_that("Test calcDice if it calculates the correct vector with dice coefficients", {
  expect_that(calcDice(c(1,2,3), c(2,3,4)), equals(1-c(0.0, 0.5, 2/3)))
})

Try the epos package in your browser

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

epos documentation built on Feb. 20, 2021, 9:09 a.m.