Skip to content

Commit 6545cbe

Browse files
committed
Use testthat_warn
1 parent b2a8228 commit 6545cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expect-setequal.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ expect_mapequal <- function(object, expected) {
8484

8585
# Length-0 vectors are OK whether named or unnamed.
8686
if (length(act$val) == 0 && length(exp$val) == 0) {
87-
warn("`object` and `expected` are empty lists")
87+
testthat_warn("`object` and `expected` are empty lists")
8888
return(pass(act$val))
8989
}
9090

0 commit comments

Comments
 (0)