Skip to content

Commit 8b03e90

Browse files
committed
test fill=tozerox
1 parent 80b1312 commit 8b03e90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testthat/test-ggplot-rect.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ test_that('rect color', {
7272
traces.by.name <- list()
7373
for(tr in info$traces){
7474
expect_equal(tr$fillcolor, toRGB("grey"))
75+
expect_equal(tr$fill, "tozerox")
7576
expect_equal(tr$y,
7677
c(0, 1, 1, 0, 0, NA,
7778
0, 1, 1, 0, 0, NA,
@@ -98,6 +99,7 @@ test_that('rect color', {
9899
traces.by.name <- list()
99100
for(tr in info$traces){
100101
expect_equal(tr$line$color, "transparent")
102+
expect_equal(tr$fill, "tozerox")
101103
expect_equal(tr$y,
102104
c(0, 1, 1, 0, 0, NA,
103105
0, 1, 1, 0, 0, NA,
@@ -125,6 +127,7 @@ test_that('rect aes(fill) with constant color', {
125127
traces.by.name <- list()
126128
for(tr in info$traces){
127129
expect_equal(tr$line$color, toRGB("black"))
130+
expect_equal(tr$fill, "tozerox")
128131
expect_equal(tr$y,
129132
c(0, 1, 1, 0, 0, NA,
130133
0, 1, 1, 0, 0, NA,

0 commit comments

Comments
 (0)