tests/testthat/test_1-8-0_longest_affix.R

test_that("Issue 40, longest_suffix", {
  expect_equal(longest_suffix(c("B", "CB", "ACB")), "B")
  expect_equal(longest_prefix(c("B", "BC", "BCA")), "B")
})

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.