tests/testthat/test_1-0-0_ngrep.R

context("ngrep")

test_that("Expected output", {
  expect_identical(ngrep("[a-h]", letters), 9:26)
  expect_identical(ngrep("[a-h]", letters, value = TRUE), letters[9:26])
})

Try the hutils package in your browser

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

hutils documentation built on April 13, 2022, 5:23 p.m.