Skip to content

Commit c76560e

Browse files
committed
Add visual test for ppd_ecdf_overlay
1 parent 963b026 commit c76560e

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed
Lines changed: 63 additions & 0 deletions
Loading

tests/testthat/test-ppc-distributions.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,15 @@ test_that("ppc_ecdf_overlay_grouped renders correctly", {
408408
)
409409
})
410410

411+
test_that("ppd_ecdf_overlay renders correctly", {
412+
testthat::skip_on_cran()
413+
testthat::skip_if_not_installed("vdiffr")
414+
skip_on_r_oldrel()
415+
416+
p_base <- ppd_ecdf_overlay(vdiff_yrep2)
417+
vdiffr::expect_doppelganger("ppd_ecdf_overlay (default)", p_base)
418+
})
419+
411420
test_that("ppc_dens renders correctly", {
412421
testthat::skip_on_cran()
413422
testthat::skip_if_not_installed("vdiffr")

0 commit comments

Comments
 (0)