Skip to content

Commit 0459f08

Browse files
test.data.table(): fix arguments to catf() (#6811)
* 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). Also, # nocov the entire if (showProgress) branch. * nit: placement of #nocov --------- Co-authored-by: Michael Chirico <[email protected]>
1 parent deb31d9 commit 0459f08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/test.data.table.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,11 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
384384
assign("lasttime", proc.time()[3L], parent.frame(), inherits=TRUE) # after gc() to exclude gc() time from next test when memtest
385385
}, add=TRUE )
386386
if (showProgress) {
387+
# nocov start
387388
cat("\r") # notranslate: \r can't be in gettextf msg
388-
catf("Running test id", numStr, " ") # nocov.
389+
catf("Running test id %s", numStr)
390+
cat(" ") # notranslate
391+
# nocov end
389392
}
390393
# See PR #4090 for comments about change here in Dec 2019.
391394
# 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)