Skip to content

Commit b438c14

Browse files
committed
off by one
1 parent 5887d1c commit b438c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-ggplot-point.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ test_that("marker color inherits from fill, when appropriate", {
4141
facet_wrap(~shape) +
4242
scale_shape_manual(values = df_shapes$shape, guide = "none")
4343
l <- save_outputs(p, "all-shapes")
44-
expect_equal(length(l$data), 24)
44+
expect_equal(length(l$data), 25)
4545
markerColors <- sapply(l$data, function(x) x$marker$color)
4646
lineColors <- sapply(l$data, function(x) x$marker$line$color)
4747
expect_true(all(markerColors[1:20] == lineColors[1:20]))
48-
expect_true(all(markerColors[21:24] != lineColors[21:24]))
48+
expect_true(all(markerColors[21:25] != lineColors[21:25]))
4949
})
5050

5151

0 commit comments

Comments
 (0)