tests/testthat/test-hex_string.R

context("hex_string")

test_that("hex string input is valid (issue 70)", {

  expect_error(
    colourvalues::color_values(c(0, 1, NA), include_alpha = FALSE, na_colour = "808080")
    , "colourvalues - unknown hex string, expecting # symbol"
  )
})

Try the colourvalues package in your browser

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

colourvalues documentation built on April 11, 2023, 6:08 p.m.