tests/testthat/test_generateParagraph2NL.R

context("generateParagraph2NL")
n <- 7
s <- generateParagraph2NL(LETTERS[1:n])
test_that("generateParagraph2NL", {
  expect_length(s, 1L)
  expect_equal(stringr::str_count(s, '\n'), 2L * (n - 1L))
})

Try the wyz.code.rdoc package in your browser

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

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.