tests/testthat/test-zzz.R

test_that("extract_string() can extract a string from a vector", {
  expect_identical(
    extract_string(
      "These are the voyages of the starship Enterprise",
      "[a-z]{8}(?= Enterprise)",
      perl = TRUE
    ),
    "starship"
  )
})

Try the bioRad package in your browser

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

bioRad documentation built on Oct. 20, 2023, 5:06 p.m.