tests/testthat/test-palettes.R

test_that("palettes work", {
  expect_equal(unname(iheid_palette("IHEID")[1]), "#E20020")
  expect_equal(unname(iheid_palette("IHEID")[2]), "#5c666f")
  expect_equal(unname(iheid_palette("IHEID")[3]), "#6f7072")
  expect_equal(unname(iheid_palette("Centres")[3]), "#268D2B")
  expect_equal(unname(iheid_palette("SDGs")[3]), "#4C9F38")
})

Try the iheiddown package in your browser

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

iheiddown documentation built on May 13, 2022, 9:06 a.m.