Skip to content

Commit e9299cf

Browse files
committed
Debugs error
1 parent f25dfb5 commit e9299cf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/testthat/test_capture_side_effects.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ test_that("capture_side_effects() works with tibbles", {
2727
output_10856,
2828
type = "list")
2929
# Testing values
30+
if (!(strip(output_10856[["error"]]) %in%
31+
strip(c(
32+
"Must extract column with a single valid subscript.\nx Subscript `NA` can't be `NA`.",
33+
"Must extract column with a single valid subscript.\n Subscript `NA` can't be `NA`.",
34+
"Can't extract column with `NA`.\n✖ Subscript `NA` must be a location, not an integer `NA`."
35+
)))){
36+
stop(strip(output_10856[["error"]]))
37+
}
3038
expect_true(
3139
strip(output_10856[["error"]]) %in%
3240
strip(c(

0 commit comments

Comments
 (0)