Skip to content

Commit 18d248c

Browse files
committed
Justify usage of expectation()
1 parent 2c12010 commit 18d248c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/test-compiled-code.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ run_cpp_tests <- function(package) {
130130
c(line, line, 1, 1)
131131
)
132132

133+
# There is no `fail()` equivalent for an error.
134+
# We could use `stop()`, but we want to pass through a `srcref`.
133135
expectation(
134136
type = "error",
135137
message = exception_text,

0 commit comments

Comments
 (0)