tests/testthat/test-print.subcom.R

context("Checking print.regex")

test_that("print.regex prints a character vector",{

    m <- "foo" %:)% "bar"
    expect_equivalent(capture.output(regexr:::print.subcom(m)), "[1] \"foo\"")
    
})
trinker/regexr documentation built on May 31, 2019, 9:50 p.m.