Skip to content

Commit

Permalink
Add another test for plot_AbanicoPlot()
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Dec 26, 2024
1 parent 0aaeac6 commit 016c6b7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/testthat/test_plot_AbanicoPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,15 @@ test_that("more coverage", {

), log.z = TRUE, summary = c("mean", "sd.abs")))

## handling of negative values; but with zlim
expect_silent(plot_AbanicoPlot(data = data.frame(
x = c(-1,10),
y = c(0.1,3),
zlim = c(2,10)

), log.z = TRUE, summary = c("mean", "sd.abs")))

## test lines 2144 onwards
## handling of negative values; before it produced wrong plots
par(mfrow = c(4,4))
expect_silent(plot_AbanicoPlot(data = data.frame(
x = c(-1,10),
Expand All @@ -285,4 +292,13 @@ test_that("more coverage", {
), log.z = TRUE, summary = c("mean", "sd.abs")))
par(mfrow = c(1,1))

## test lines 2888 onwards (same was above, just with the rotated plot)
par(mfrow = c(3,3))
expect_silent(plot_AbanicoPlot(data = data.frame(
x = c(-1,10),
y = c(0.1,3)

), log.z = TRUE, rotate = TRUE))
par(mfrow = c(1,1))

})

0 comments on commit 016c6b7

Please sign in to comment.