tests/testthat/test-unglue_detect.R

test_that("unglue_detect works", {
  expect_true(unglue_detect("this and that", "{x} and {y}"))
  expect_false(unglue_detect("this and that", "{x} or {y}"))
})

Try the unglue package in your browser

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

unglue documentation built on July 1, 2020, 5:46 p.m.