Skip to content

Commit c5fd947

Browse files
committed
test.data.table: fix arguments to catf()
This ensures that interactive test.data.table() prints the test numbers while running (and avoids an error due to options(warn=2) in the middle of tests.Rraw).
1 parent b7f2106 commit c5fd947

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/test.data.table.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
385385
}, add=TRUE )
386386
if (showProgress) {
387387
cat("\r") # notranslate: \r can't be in gettextf msg
388-
catf("Running test id", numStr, " ") # nocov.
388+
catf("Running test id %s", numStr) # nocov.
389+
cat(" ") # notranslate
389390
}
390391
# See PR #4090 for comments about change here in Dec 2019.
391392
# If a segfault error occurs in future and we'd like to know after which test, then arrange for the

0 commit comments

Comments
 (0)