tests/testthat/test-output.R

context("output")

test_that("output", {
  expect_identical(format(utf8(c("a", "bc"))), c("a ", "bc"))
})

test_that("print", {
  expect_output_file(print(utf8(c("a", "bc"))), "output/abc.txt", update = TRUE)
})

Try the enc package in your browser

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

enc documentation built on Dec. 30, 2019, 1:06 a.m.