Skip to content

Commit a27059a

Browse files
committed
visual tests
1 parent 9293196 commit a27059a

File tree

6 files changed

+325
-150
lines changed

6 files changed

+325
-150
lines changed

tests/figs/mcmc-intervals/mcmc-areas-ridges-default.svg

Lines changed: 50 additions & 50 deletions
Loading

tests/figs/mcmc-intervals/mcmc-areas-ridges-inner.svg

Lines changed: 50 additions & 50 deletions
Loading

tests/figs/mcmc-intervals/mcmc-areas-ridges-outer.svg

Lines changed: 50 additions & 50 deletions
Loading

tests/figs/mcmc-intervals/mcmc-areas-ridges-size.svg

Lines changed: 87 additions & 0 deletions
Loading

tests/figs/mcmc-intervals/mcmc-areas-size.svg

Lines changed: 82 additions & 0 deletions
Loading

tests/testthat/test-mcmc-intervals.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ test_that("mcmc_areas renders correctly", {
230230

231231
p_mean_points <- mcmc_areas(vdiff_dframe, point_est = "mean")
232232
vdiffr::expect_doppelganger("mcmc_areas (means)", p_mean_points)
233+
234+
p_size <- mcmc_areas(vdiff_dframe, size = 2)
235+
vdiffr::expect_doppelganger("mcmc_areas (size)", p_size)
233236
})
234237

235238
test_that("mcmc_areas_ridges renders correctly", {
@@ -244,4 +247,7 @@ test_that("mcmc_areas_ridges renders correctly", {
244247

245248
p_outer <- mcmc_areas_ridges(vdiff_dframe, prob = .5, prob_outer = .95)
246249
vdiffr::expect_doppelganger("mcmc_areas_ridges (outer)", p_outer)
250+
251+
p_size <- mcmc_areas_ridges(vdiff_dframe, size = 2)
252+
vdiffr::expect_doppelganger("mcmc_areas_ridges (size)", p_size)
247253
})

0 commit comments

Comments
 (0)