tests/testthat/test-show.R

context("test show regex")

test_that("test show_regex",{
    show_regex(re2("(?P<testname>>this)( is)(?P<testname>>this)"))
    show_regex("show_regex")
    expect_error(show_regex(list()))
    expect_error(show_regex(1))
})

Try the re2r package in your browser

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

re2r documentation built on May 2, 2019, 12:35 p.m.