tests/testthat/test-cat2.R

library("testthat")

test_that("cat2 works", {
    x <- capture.output(cat2("x:", 1))
    expect_equal(x, "x: 1")
})

Try the toscutil package in your browser

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

toscutil documentation built on June 28, 2024, 5:06 p.m.