Skip to content

Commit de4c69e

Browse files
committed
update test
1 parent f1d7d8e commit de4c69e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21144,7 +21144,8 @@ test(2314.2, !any(grepl("<int>", tail(capture.output(print(dt, class = TRUE, col
2114421144

2114521145
# forderv should not segfault on wide tables due to recursion #4300
2114621146
set.seed(1)
21147+
idx = sort(sample(10, 20, TRUE))
2114721148
x = matrix(rnorm(1e4), nrow=10)
21148-
idx = sample(10, 20, TRUE)
2114921149
DT = as.data.table(x[idx,])
21150-
test(10, length(forderv(DT, by=names(DT), sort=FALSE, retGrp=TRUE)), 20L)
21150+
DT[, V1000 := 20:1]
21151+
test(2315, forderv(DT, by=names(DT), sort=FALSE, retGrp=TRUE), forderv(DT, by=c("V1", "V1000"), sort=FALSE, retGrp=TRUE))

0 commit comments

Comments
 (0)