Skip to content

Commit 52d0929

Browse files
committed
updated test
1 parent f5ba166 commit 52d0929

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inst/tests/tests.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21776,7 +21776,7 @@ dt = data.table(a=1:3)
2177621776
test(2377.91, truelength(dt$a), 0L)
2177721777
test(2377.92, {setallocrow(dt); truelength(dt$a)}, 3L)
2177821778

21779-
# 7431 warn when .SD is returned after local assignment to .SD columns
21779+
# #7431 warn when .SD is returned after local assignment to .SD columns
2178021780
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")
2178121781
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")
2178221782
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))

0 commit comments

Comments
 (0)