Skip to content

Commit 5e1789d

Browse files
committed
polish test fun
1 parent dece1c6 commit 5e1789d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/test.data.table.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,17 +379,16 @@ test = function(num,x,y=TRUE,error=NULL,warning=NULL,message=NULL,output=NULL,no
379379
for (p in vector_params) {
380380
val = get(p, envir=environment())
381381
if (length(val) > 0L) {
382-
cl[[p]] = val[((i - 1L) %% length(val)) + 1L] # ccycle through values if fewer than levels
382+
cl[[p]] = val[((i - 1L) %% length(val)) + 1L] # cycle through values if fewer than levels
383383
}
384384
}
385385

386386
if (compare && i == 1L) cl$y = eval(cl$x, parent.frame())
387-
eval(cl, parent.frame())
387+
eval(cl, parent.frame()) # actual test call
388388
}
389389
return(invisible())
390390
}
391391

392-
# print(match.call())
393392
if (!is.null(env)) {
394393
old = Sys.getenv(names(env), names=TRUE, unset=NA)
395394
to_unset = !lengths(env)

0 commit comments

Comments
 (0)