tests/testthat/test-utils.R

context("utils")

test_that("suffix & prefix works", {
  
  expect_is(suffix("%"), "JS_EVAL")
  expect_error(suffix(c("%", "%")))
  
  expect_is(prefix("%"), "JS_EVAL")
  expect_error(prefix(c("%", "%")))
  
})

Try the billboarder package in your browser

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

billboarder documentation built on Sept. 11, 2024, 7:35 p.m.