Skip to content

Commit 51c8b60

Browse files
author
Kirill Müller
committed
use compare() for more informative output in expect_identical()
1 parent 885da69 commit 51c8b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/expectations-equality.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ is_identical_to <- function(expected, label = NULL) {
128128
if (isTRUE(same)) {
129129
diff <- "Objects equal but not identical"
130130
} else {
131-
diff <- paste0(same, collapse = "\n")
131+
diff <- compare(actual, expected)$message
132132
}
133133
}
134134

0 commit comments

Comments
 (0)