R/generateTestthatEnvelope.R

Defines functions generateTestthatEnvelope

generateTestthatEnvelope <- function(entries_s, label_s_1 = 'some tests') {

  c(
    paste0("test_that('", label_s_1, "', {"),
    entries_s,
    '})\n'
  )
}

Try the wyz.code.testthat package in your browser

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

wyz.code.testthat documentation built on Oct. 6, 2021, 9:07 a.m.