tests/testthat/test-ngram.R

test_that("ngram function returns a data frame", {
  result <- ngram(word = "havet", corpus = "bok")
  expect_s3_class(result, "data.frame")
})

Try the dhlabR package in your browser

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

dhlabR documentation built on Sept. 11, 2024, 9:12 p.m.