tests/testthat/test-endswith.R

test_that("strs_endswith works", {
  expect_true(strs_endswith("words", "s"))
  expect_false(strs_endswith("words", "w"))
})

Try the strs package in your browser

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

strs documentation built on Sept. 11, 2024, 6:44 p.m.