tests/testthat/test-printComment.R

test_that("printComment", {
    out <- capture.output({
        printComment(c("hello", "world"))
    })
    expect_identical(
        object = out,
        expected = "## [1] \"hello\" \"world\""
    )
})
mjsteinbaugh/devtools documentation built on Jan. 5, 2024, 11:09 a.m.