Skip to content

Commit ea71d8a

Browse files
committed
add missing trace_env arg in expect_nas_names_()
1 parent 22bf125 commit ea71d8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/expect-named.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ normalise_names <- function(x, ignore.order = FALSE, ignore.case = FALSE) {
7272
x
7373
}
7474

75-
expect_has_names_ <- function(act) {
75+
expect_has_names_ <- function(act, trace_env = caller_env()) {
7676
act_names <- names(act$val)
7777
if (identical(act_names, NULL)) {
7878
msg <- sprintf("%s does not have names.", act$lab)
79-
return(fail(msg))
79+
return(fail(msg, trace_env = trace_env))
8080
}
8181
return(pass(act$val))
8282
}

0 commit comments

Comments
 (0)