File: test-scale-hue.R

package info (click to toggle)
r-cran-ggplot2 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,748 kB
  • sloc: sh: 15; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
test_that("scale_hue() checks the type input", {
  pal <- qualitative_pal(type = 1:4)
  expect_snapshot_error(pal(4))
  pal <- qualitative_pal(type = colors())
  expect_silent(pal(4))
  pal <- qualitative_pal(type = list(colors()[1:10], colors()[11:30]))
  expect_silent(pal(4))
})