🔍 An RStudio addin slash regex utility belt
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

11 lines
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. })