tests/testthat/test_dice.R

library(epos)
context("test_dice")

test_that("Test dice if it calculates the correct dice coefficient", {
  expect_that(dice(1,3,4), equals(1-0.2857143))
})

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.