tests/testthat/test-printComment.R

test_that("printComment", {
    out <- capture.output({
        printComment(c("hello", "world"))
    })
    expect_identical(
        object = out,
        expected = "## [1] \"hello\" \"world\""
    )
})
steinbaugh/bb8 documentation built on Feb. 5, 2024, 11:12 p.m.