tests/testthat/test-add_suffix.R

context("adding suffix to a list")

test_that("suffix addition is working", {
  expect_equal(taxlist:::add_suffix("x", "y"), "x")
  expect_equal(taxlist:::add_suffix("x", "x"), "x_1")
})
ropensci/taxlist documentation built on Sept. 17, 2024, 3:39 p.m.