tests/testthat/test-ignore.R

test_that(". escaped around surround by anchors", {
  expect_equal(escape_path("."), "^\\.$")
})

test_that("strip trailing /", {
  expect_equal(escape_path("./"), "^\\.$")
})

Try the usethis package in your browser

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

usethis documentation built on July 9, 2023, 7:23 p.m.