tests/degenerate_cases.r

library(meanr)

# valgrind reports false positives, so set nthreads to 1
test = score("", nthreads=1)
truth = 
data.frame(
  positive = 0L,
  negative = 0L,
  score = 0L,
  wc = 0L
)

stopifnot(identical(test, truth))

Try the meanr package in your browser

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

meanr documentation built on Oct. 26, 2022, 1:08 a.m.