tests/testthat/test-wordwrap.R

context("wordwrap")
test_that("wordwrap format always adds \n", {
  expect_equal(wordwrap("a balloon"), "a\nballoon")
  expect_equal(wordwrap("a"), "a")
})

Try the optiRum package in your browser

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

optiRum documentation built on May 5, 2022, 1:05 a.m.