tests/testthat/test-message.R

################################################################################

context("test-message")

################################################################################

test_that("printf works", {
  expect_identical(capture.output(printf("My name is %s.", "Florian")),
                   "My name is Florian.")
})

################################################################################

Try the bigassertr package in your browser

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

bigassertr documentation built on Jan. 10, 2023, 5:13 p.m.