Skip to content

Commit ec368f0

Browse files
committed
..
1 parent 8c5c393 commit ec368f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21622,9 +21622,9 @@ local({
2162221622

2162321623
# 5397 - keyby/key ignored if numeric indices used in j
2162421624
DT = data.table(a=1:4, b=5:8, g=c(1,1,2,2))
21625-
test(2339.1, DT[, 1:2, by=g], DT[, 1:2], warning="`by` or `keyby` is ignored")
21626-
test(2339.2, DT[, 2:1, keyby=g], DT[, 2:1], warning="`by` or `keyby` is ignored")
21627-
test(2339.3, DT[, c("b", "a"), by=g, with=FALSE], DT[, c("b", "a")], warning="`by` or `keyby` is ignored")
21625+
test(2339.1, DT[, 1:2, by=g], DT[, 1:2], warning="'by' or 'keyby' is ignored")
21626+
test(2339.2, DT[, 2:1, keyby=g], DT[, 2:1], warning="'by' or 'keyby' is ignored")
21627+
test(2339.3, DT[, c("b", "a"), by=g, with=FALSE], DT[, c("b", "a")], warning="'by' or 'keyby' is ignored")
2162821628
expected_sd = data.table(g=c(1,1,2,2), a=1:4, b=5:8)
2162921629
test(2339.4, DT[, .SD[, 1:2], by=g], expected_sd)
2163021630
expected_single_int = data.table(g=c(1,2), V1=c(1,1))

0 commit comments

Comments
 (0)