🔍 An RStudio addin slash regex utility belt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 line
283B

  1. context("test-wrap_regex.R")
  2. test_that("wrap_regex generally works", {
  3. expect_equal(wrap_regex("(a)(b)"),
  4. "<span class=\"g01\">(a)</span><span class=\"g02\">(b)</span>")
  5. })
  6. test_that("wrap_regex doesn't add parens", {
  7. expect_equal(wrap_regex("\\ba"), "\\ba")
  8. })