tests/testthat/test-escape.R

context("escape")
test_that("default escape works properly", {
  expect_equal(escape(1), structure("1", class="regex"))
})

Try the rex package in your browser

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

rex documentation built on Nov. 26, 2021, 5:21 p.m.