tests/testthat/test-toRGB.R

context("toRGB")

test_that("Can apply alpha recursively with toRGB()", {
  col <- toRGB(toRGB("black", 0.9), 0.9)
  expect_match(col, "rgba\\(0,0,0,0\\.80")
})
gvarunkumar/plotly documentation built on May 17, 2019, 9:29 a.m.