Skip to content

Commit

Permalink
Merge pull request #94 from teunbrand/ggplot2_3.5.0
Browse files Browse the repository at this point in the history
delete scale name tests
  • Loading branch information
sjmgarnier authored Jan 28, 2024
2 parents f03a117 + 1c47e35 commit 20e6a9a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/testthat/test-viridis.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
context("scales")
test_that("scales work correctly", {

fill_scale <- scale_fill_viridis(option = "A")
expect_equal(fill_scale$scale_name, "gradientn")

fill_scale <- scale_fill_viridis(option = "A", discrete = TRUE)
expect_equal(fill_scale$is_discrete(), TRUE)

color_scale <- scale_color_viridis(option = "A")
expect_equal(color_scale$scale_name, "gradientn")

color_scale <- scale_color_viridis(option = "A", discrete = TRUE)
expect_equal(color_scale$is_discrete(), TRUE)

Expand Down

0 comments on commit 20e6a9a

Please sign in to comment.