tests/testthat/test-comment.R

context("comment")

test_that("comments", {
  expect_equal(format(make_comment("a")), "# a")
  expect_equal(format(make_comment("a", "b")), c("# a", "# b"))
  expect_equal(format(make_comment(c("a", "b"))), c("# a", "# b"))
})

test_that("error checking", {
  expect_error(make_comment(), "At least")
})
krlmlr/MakefileR documentation built on May 20, 2019, 6:15 p.m.