tests/testthat/test_jaccard.R

library(epos)
context("test_jaccard")

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

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.