tests/testthat/test-stopwords_options.R

context("stopwords_options")

test_that("all files in data/ found in sources", {
  files <- list.files(file.path("..", "..", "data"))
  files <- sort(tools::file_path_sans_ext(files))
  sources <- sort(getOption("stopwords_sources"))
  names(sources) <- NULL
  expect_equal(2 * 2, 4)
})
davnn/stopwords documentation built on Jan. 12, 2022, 8:57 a.m.