We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb079a commit 6cc033cCopy full SHA for 6cc033c
tests/testthat/test-ggplot-jitter.R
@@ -23,5 +23,6 @@ test_that("geom_jitter is working", {
23
tr <- info$traces[[1]]
24
expect_identical(tr$type, "scatter")
25
# default jitter is 40% of the resolution of the data.
26
- expect_true(all(0 < abs(mpg$cyl - tr$x) < 0.4))
+ diffs <- abs(mpg$cyl - tr$x)
27
+ expect_true(all(0 < diffs & diffs < 0.4))
28
})
0 commit comments