Skip to content

Commit f1d7d8e

Browse files
committed
add test
1 parent 76a4e83 commit f1d7d8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21141,3 +21141,10 @@ dt = data.table(id = 1:25)
2114121141
test(2314.1, any(grepl("<int>", tail(capture.output(print(dt, class = TRUE)), 2))), TRUE)
2114221142
# Test that class=TRUE with col.names="top" doesn't show classes at bottom
2114321143
test(2314.2, !any(grepl("<int>", tail(capture.output(print(dt, class = TRUE, col.names = "top")), 2))), TRUE)
21144+
21145+
# forderv should not segfault on wide tables due to recursion #4300
21146+
set.seed(1)
21147+
x = matrix(rnorm(1e4), nrow=10)
21148+
idx = sample(10, 20, TRUE)
21149+
DT = as.data.table(x[idx,])
21150+
test(10, length(forderv(DT, by=names(DT), sort=FALSE, retGrp=TRUE)), 20L)

0 commit comments

Comments
 (0)