tests/testthat/test-ignore.R

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

test_that("strip trailing /", {
  expect_equal(escape_path("./"), "^\\.$")
})
r-lib/usethis documentation built on April 11, 2025, 7:42 p.m.