tests/testthat/test-who_palettes.R

context("who_palettes")

test_that("who_palettes cannot take n larger than palettes", {
  expect_error(who_palettes(palette = "main", n = 100))
})


test_that("who_palettes fails if a unrecognised palette is supplied", {
  expect_error(who_palettes(palette = "dark"))
})

Try the getTBinR package in your browser

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

getTBinR documentation built on July 2, 2020, 12:31 a.m.