Skip to content

Commit

Permalink
tests: hex color internal change
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed Nov 28, 2024
1 parent 4ba73e6 commit 7f286dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/tinytest/test_raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ expect_equal(mapsf:::get_the_raster_pal(c("red", "blue"), 6, 1, TRUE),
c("#FF0000FF", "#CC0033FF", "#990066FF", "#650099FF",
"#3200CCFF", "#0000FFFF"))
# get_continuous_pal
pp <- mapsf:::get_continuous_pal(c(0, 10, 20), pal = c("red", "white", "blue"))
expect_equal(pp[c(1, 500, 1000)], c("#FF0000", "#FFFFFF", "#0000FF"))
pp <- mapsf:::get_continuous_pal(c(0, 10, 20), pal = c("red", "white", "blue"), alpha = 1)
expect_equal(pp[c(1, 500, 1000)], c("#FF0000FF", "#FFFFFFFF", "#0000FFFF"))

# type
expect_error(mf_raster(a, type = "coninuous"))
Expand Down

0 comments on commit 7f286dd

Please sign in to comment.