Skip to content

Commit 074b805

Browse files
committed
add test
1 parent 4a96f80 commit 074b805

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19247,3 +19247,6 @@ DT = data.table()
1924719247
test(2291.1, options=c(datatable.alloccol=1L), {for (i in seq(10L)) set(DT, j = paste0("V",i), value = i); ncol(DT)}, 10L)
1924819248
DT = structure(list(a = 1, b = 2), class = c("data.table", "data.frame"))
1924919249
test(2291.2, options=c(datatable.alloccol=1L), set(DT, j="c", value=3), data.table(a=1, b=2, c=3))
19250+
# ensure := and set are consistent if they need to overallocate
19251+
DT = data.table(); DT2 = data.table()
19252+
test(2291.3, options=c(datatable.alloccol=1L), {for (i in seq(10L)) set(DT, j = paste0("V",i), value = i)}, {for (i in seq(10)) DT2[, sprintf("V%d",i) := i]})

0 commit comments

Comments
 (0)