tests/testthat/test-concatenation.R

context("%R%")

test_that(
  "%R% concatenates",
  {
    expected <- as.regex("foobar")
    actual <- "foo" %R% "bar"
    expect_equal(actual, expected)
  }
)

Try the rebus.base package in your browser

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

rebus.base documentation built on May 2, 2019, 5:14 a.m.