Skip to content

Commit 39adb1b

Browse files
committed
update tests
1 parent b9508bc commit 39adb1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-stat-bin.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ test_that("stat_bin(drop) options work as intended", {
122122
p <- ggplot(data.frame(x = c(1, 2, 2, 3, 5, 6, 6, 7)), aes(x)) +
123123
scale_x_continuous(limits = c(-1, 9))
124124

125-
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "all"))
125+
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "none"))
126126
expect_equal(ld$x, -1:9)
127127

128-
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "inner"))
128+
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "extremes"))
129129
expect_equal(ld$x, c(1:7))
130130

131-
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "none"))
131+
ld <- layer_data(p + geom_histogram(binwidth = 1, drop = "all"))
132132
expect_equal(ld$x, c(1:3, 5:7))
133133
})
134134

0 commit comments

Comments
 (0)