Skip to content

Commit b1c460b

Browse files
committed
Correct place
1 parent e19648c commit b1c460b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

R/test-that.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test_code <- function(code, env, reporter = NULL, skip_on_empty = TRUE) {
110110
}
111111
handle_expectation <- function(e) {
112112
the$test_expectations <- the$test_expectations + 1L
113-
register_expectation(e, 7)
113+
register_expectation(e, 9)
114114
invokeRestart("muffle_expectation")
115115
}
116116
handle_warning <- function(e) {

tests/testthat/_snaps/reporter-debug.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,13 @@
55
3: fail(msg, info = info, trace_env = trace_env)
66
4: expectation("failure", message, srcref = srcref, trace = trace)
77
5: exp_signal(exp)
8-
6: withRestarts(if (expectation_broken(exp)) {
9-
stop(exp)
10-
} else {
11-
signalC
12-
7: withRestartList(expr, restarts)
138

149
1: f()
1510
2: expect_true(FALSE)
1611
3: expect_waldo_constant_(act, exp, info = info, ignore_attr = TRUE)
1712
4: fail(msg, info = info, trace_env = trace_env)
1813
5: expectation("failure", message, srcref = srcref, trace = trace)
1914
6: exp_signal(exp)
20-
7: withRestarts(if (expectation_broken(exp)) {
21-
stop(exp)
22-
} else {
23-
signalC
24-
8: withRestartList(expr, restarts)
2515

2616
1: stop("stop")
2717

0 commit comments

Comments
 (0)