tests/testthat/test-printComment.R

test_that("printComment", {
    out <- capture.output({
        printComment(c("hello", "world"))
    })
    expect_identical(
        object = out,
        expected = "## [1] \"hello\" \"world\""
    )
})
acidgenomics/r-aciddevtools documentation built on April 12, 2025, 12:43 p.m.