tests/testthat/test-make_unique.R

context("make_unique")

## TODO: Rename context
## TODO: Add more tests

test_that("conformtite", {
  expect_is(make_unique(letters), "character")
  vec <- c("a","b","a","c","b","b")
  expect_equal(length(make_unique(vec)), length(vec))
  expect_equal_to_reference(make_unique(vec), "make_unique_vec.test")
})

Try the thinkr package in your browser

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

thinkr documentation built on Aug. 22, 2022, 5:05 p.m.