tests/testthat/test-r2dii_colours.R

test_that("outputs the expected snapshot", {
  expect_snapshot({
    palette_colours

    scenario_colours

    sector_colours

    technology_colours
  })
})

test_that("scenario_colours has five rows", {
  # Requirement of get_ordered_scenario_colours()
  expect_equal(nrow(scenario_colours), 5L)
})
2DegreesInvesting/r2dii.plot documentation built on May 12, 2022, 3:53 a.m.