tests/testthat/test-remove.R

test_that("succesfully wraps str_replace_all", {
  expect_equal(str_remove_all("abababa", "ba"), "a")
  expect_equal(str_remove("abababa", "ba"), "ababa")
})

Try the stringr package in your browser

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

stringr documentation built on Sept. 9, 2025, 5:50 p.m.