Skip to content

Commit d6c0604

Browse files
committed
test.data.table(): don't test non-English output
This is already done for warnings and errors. Unfortunately, some tests do check output and conditions by hand, so test.data.table() still requires LANGUAGE=en for now.
1 parent c5fd947 commit d6c0604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/test.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
475475
writeLines(out)
476476
# nocov end
477477
}
478-
if (!fail && !length(error) && (length(output) || length(notOutput))) {
478+
if (!fail && !length(error) && (length(output) || length(notOutput)) && !foreign) {
479479
if (out[length(out)] == "NULL") out = out[-length(out)]
480480
out = paste(out, collapse="\n")
481481
output = paste(output, collapse="\n") # so that output= can be either a \n separated string, or a vector of strings.

0 commit comments

Comments
 (0)