tests/testthat/test-color.R

test_that("getMultipleColors works", {
  expect_vector(
    getMultipleColors(1:10), ptype = character(), size = 10
  )
})

test_that("getContinuousColors works", {
  expect_equal(
    nchar(getContinuousColors()(0.1)), 9
  )
})
beyondpie/pureRUtils documentation built on Jan. 10, 2023, 3:22 a.m.