Skip to content

Commit dc95b65

Browse files
committed
..
1 parent d484ce6 commit dc95b65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

inst/tests/tests.Rraw

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21777,7 +21777,7 @@ test(2377.91, truelength(dt$a), 0L)
2177721777
test(2377.92, {setallocrow(dt); truelength(dt$a)}, 3L)
2177821778

2177921779
# 7431 warn when .SD is returned after local assignment to .SD columns
21780-
test(2378.1, {DT=data.table(a=1:3,b=1:3); DT[, {b[2] <- 0L; .SD}]}, data.table(a=1:3,b=1:3), warning="Local assignment to column\\(s\\) \\[b\\] detected in 'j' while also using \\.SD")
21781-
test(2378.2, {DT=data.table(a=1:3,b=1:3,d=1:3); DT[a %in% 1:2, {b[d==2L] <- 0L; .SD}]}, data.table(a=1:2,b=1:2,d=1:2), warning="Local assignment to column\\(s\\) \\[b\\] detected in 'j' while also using \\.SD")
21782-
test(2378.3, {DT=data.table(a=1:3,b=1:3); DT[, {x <- b; x[2] <- 0L; .SD}]}, data.table(a=1:3,b=1:3))
21783-
test(2378.4, {DT=data.table(a=1:3,b=1:3,c=1:3); DT[, {c[2] <- 0L; .SD}, .SDcols="a"]}, data.table(a=1:3))
21780+
test(2378.1, {DT=data.table(a=1:3,b=1:3); DT[, {b[2] = 0L; .SD}]}, data.table(a=1:3,b=1:3), warning="Local assignment to column\\(s\\) \\[b\\] detected in 'j' while also using \\.SD")
21781+
test(2378.2, {DT=data.table(a=1:3,b=1:3,d=1:3); DT[a %in% 1:2, {b[d==2L] = 0L; .SD}]}, data.table(a=1:2,b=1:2,d=1:2), warning="Local assignment to column\\(s\\) \\[b\\] detected in 'j' while also using \\.SD")
21782+
test(2378.3, {DT=data.table(a=1:3,b=1:3); DT[, {x = b; x[2] = 0L; .SD}]}, data.table(a=1:3,b=1:3))
21783+
test(2378.4, {DT=data.table(a=1:3,b=1:3,c=1:3); DT[, {c[2] = 0L; .SD}, .SDcols="a"]}, data.table(a=1:3))

0 commit comments

Comments
 (0)