Skip to content

Commit

Permalink
Multiple observed warnings combined in display
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed May 2, 2024
1 parent 65fbc2a commit 17f77e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/test.data.table.R
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
}
if (length(expected) != length(observed)) {
# nocov start
catf("Test %s produced %d %ss but expected %d\n%s\n%s\n", numStr, length(observed), type, length(expected), paste("Expected:", expected), paste("Observed:", observed))
catf("Test %s produced %d %ss but expected %d\n%s\n%s\n", numStr, length(observed), type, length(expected), paste("Expected:", expected), paste("Observed:", observed, collapse = "\n"))
fail = TRUE
# nocov end
} else {
Expand Down

0 comments on commit 17f77e9

Please sign in to comment.