Skip to content

Commit 6fd0907

Browse files
committed
add tests
1 parent ad8c97d commit 6fd0907

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19241,3 +19241,9 @@ test(2290.2, DT[, `:=`(a := 2, c := 3)], error="It looks like you re-used `:=` i
1924119241
test(2290.3, DT[, `:=`(a, c := 3)], error="It looks like you re-used `:=` in argument 2")
1924219242
# partially-named `:=`(...) --> different branch, same error
1924319243
test(2290.4, DT[, `:=`(a = 2, c := 3)], error="It looks like you re-used `:=` in argument 2")
19244+
19245+
# re-overallocate in set if quota is reached #496 #4100
19246+
DT = data.table()
19247+
test(2235.1, options=c(datatable.alloccol=1L), {for (i in seq(10L)) set(DT, j = paste0("V",i), value = i); ncol(DT)}, 10L)
19248+
DT = structure(list(a = 1, b = 2), class = c("data.table", "data.frame"))
19249+
test(2235.2, options=c(datatable.alloccol=1L), set(DT, j="c", value=3), data.table(a=1, b=2, c=3))

0 commit comments

Comments
 (0)