Skip to content

Commit 9599ba2

Browse files
committed
Move two unit tests for ppc_loo_pit_qq() to a more appropriate place.
1 parent 23e76b2 commit 9599ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-ppc-loo.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ test_that("ppc_loo_pit gives deprecation warning but still works", {
2828

2929
test_that("ppc_loo_pit_overlay returns ggplot object", {
3030
expect_gg(p1 <- ppc_loo_pit_overlay(y, yrep, lw, samples = 25))
31-
expect_gg(p2 <- ppc_loo_pit_qq(y, yrep, lw, compare = "normal"))
32-
expect_equal(p2$labels$x, "Normal")
3331
})
3432

3533
test_that("ppc_loo_pit_qq returns ggplot object", {
3634
expect_gg(p1 <- ppc_loo_pit_qq(y, yrep, lw))
3735
expect_equal(p1$labels$x, "Uniform")
36+
expect_gg(p2 <- ppc_loo_pit_qq(y, yrep, lw, compare = "normal"))
37+
expect_equal(p2$labels$x, "Normal")
3838
})
3939

4040
test_that("ppc_loo_pit functions work when pit specified instead of y,yrep,lw", {

0 commit comments

Comments
 (0)