tests/testthat/test-is.regex.R

context("Checking is.regex")

test_that("is.regex correctly tests regular expression strings.",{

    expect_false(is.regex("I|***"))
    expect_true(is.regex("I|i"))
})

Try the qdapRegex package in your browser

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

qdapRegex documentation built on Oct. 17, 2023, 5:06 p.m.