Skip to content

Commit 6cc033c

Browse files
committed
bug fix
1 parent dfb079a commit 6cc033c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testthat/test-ggplot-jitter.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ test_that("geom_jitter is working", {
2323
tr <- info$traces[[1]]
2424
expect_identical(tr$type, "scatter")
2525
# default jitter is 40% of the resolution of the data.
26-
expect_true(all(0 < abs(mpg$cyl - tr$x) < 0.4))
26+
diffs <- abs(mpg$cyl - tr$x)
27+
expect_true(all(0 < diffs & diffs < 0.4))
2728
})

0 commit comments

Comments
 (0)