Skip to content

Commit fb40491

Browse files
committed
setting tolerance in expect_equal() requires named argument now
1 parent 0e91034 commit fb40491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-ggplot-histogram.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test_that("geom_histogram(aes(y = ..density..)) displays a density", {
3434
area <- sum(tr$y) * bw
3535
# the "area" of the plot (should be 1).
3636
# note this also serves as a check for the default binwidth
37-
expect_equal(area, 1, 0.1)
37+
expect_equal(area, 1, tolerance = 0.1)
3838
})
3939

4040
test_that("geom_histogram(aes(fill = ..count..)) works", {

0 commit comments

Comments
 (0)