tests/testthat/test-sc.R

context("test-sc")

test_that("sc accepts multiple input", {
  x <- sc("brightblue2", "mutedpink4")
  expect_equal(length(x), 2)
})

test_that("sc accepts default names", {
  x <- sc("blue", "pink")
  expect_equal(length(x), 2)
  expect_equal(x, sc("blue3", "pink3"))
})

Try the simplecolors package in your browser

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

simplecolors documentation built on Aug. 31, 2023, 9:07 a.m.