tests/testthat/test_generateSection.R

context("generateSection")

a <- generateSection('title', 'a title')
b <- generateSection('warning', c('some bla bla bla for warning',
                                  'some other bla bla bla for warning'))

test_that("generateSection", {
  expect_equal(a, '\\title{a title}')
  expect_equal(b, '\\section{Warning}{\nsome bla bla bla for warning\nsome other bla bla bla for warning\n}')
})

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.