tests/testthat/test-bind_or.R

context("Checking bind_or")

test_that("bind_or binds and `or` concatenate elements",{

    expect_equal(bind_or("them", "those", "that", "these"), 
        "(\\bthem\\b|\\bthose\\b|\\bthat\\b|\\bthese\\b)")
    
    expect_equal(bind_or("them", "those", "that", "these", group.all = FALSE),
        "\\bthem\\b|\\bthose\\b|\\bthat\\b|\\bthese\\b")
})
trinker/qdapRegex documentation built on Oct. 19, 2023, 11:31 p.m.