tests/score.r

library(meanr)

words = "Abundance abundant accessable. Banana apple orange. Abnormal abolish abominable."

# valgrind reports false positives, so set nthreads to 1
test <- score(words, nthreads=1)
stopifnot(identical(test$positive, 3L))
stopifnot(identical(test$negative, 3L))
stopifnot(all.equal(test$score, 0.0))
stopifnot(identical(test$wc, 9L))

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.