tests/testthat/test-text.R

context("text")

test_that("text", {
  expect_equal(format(make_text("a")), "a")
  expect_equal(format(make_text("a", "b")), c("a", "b"))
  expect_equal(format(make_text(letters)), letters)
})

test_that("error checking", {
  expect_error(make_text(), "At least")
})

Try the MakefileR package in your browser

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

MakefileR documentation built on May 1, 2019, 10:30 p.m.