Skip to content

Commit 6a583ed

Browse files
committed
updating the tests to match new warning message
1 parent 579fffc commit 6a583ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/test-ppc-errors.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ test_that("ppc_error_scatter_avg_vs_x returns ggplot2 object", {
4949

5050
# expect warning
5151
expect_warning(expect_gg(ppc_error_scatter_avg_vs_x(y, yrep, x = rnorm(length(y)))),
52-
"Use ppc_error_scatter_avg\\(x = x\\) instead of ppc_error_scatter_avg_vs_x\\(\\).")
52+
"'ppc_error_scatter_avg_vs_x' is deprecated.")
5353
expect_warning(expect_gg(ppc_error_scatter_avg_vs_x(y, yrep[1:5, ], x = rnorm(length(y)))),
54-
"Use ppc_error_scatter_avg\\(x = x\\) instead of ppc_error_scatter_avg_vs_x\\(\\).")
54+
"'ppc_error_scatter_avg_vs_x' is deprecated.")
5555
})
5656

5757
test_that("ppc_error_binned returns ggplot object", {
@@ -135,7 +135,7 @@ test_that("ppc_error_scatter_avg_vs_x renders correctly", {
135135
# expect warning
136136
expect_warning(
137137
p_base <- ppc_error_scatter_avg_vs_x(vdiff_y, vdiff_yrep, x = seq_along(vdiff_y)),
138-
"Use ppc_error_scatter_avg\\(x = x\\) instead of ppc_error_scatter_avg_vs_x\\(\\)."
138+
"'ppc_error_scatter_avg_vs_x' is deprecated."
139139
)
140140
vdiffr::expect_doppelganger("ppc_error_scatter_avg_vs_x (default)", p_base)
141141

0 commit comments

Comments
 (0)