tests/testthat/test-wordlist.R

context("wordlist")


test_that("'abbreviations' has common acronyms", {
    expect_true(all(c("Mr.", "Mrs.", "Ms.") %in% abbreviations_en))
    expect_true(all(c("ap. J.-C.", "av. J.-C.") %in% abbreviations_fr))
})


test_that("'stopwords' has common function words", {
    expect_true(all(c("the", "and", "is") %in% stopwords_en))
})

Try the corpus package in your browser

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

corpus documentation built on May 2, 2021, 9:06 a.m.