Skip to content

Commit a0fc6b8

Browse files
committed
clarify test comment
1 parent 2e5ad96 commit a0fc6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/tests/tests.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21852,6 +21852,6 @@ test(2344.02, nrow(r), 2L)
2185221852
test(2344.03, setkey(d1[, .(V1, label = c("one", "zero", "one"), V2)][data.table(label = "one"), on = "label", allow.cartesian = TRUE], NULL),
2185321853
setkey(d1, NULL)[, .(V1, label = c("one", "zero", "one"), V2)][data.table(label = "one"), on = "label", allow.cartesian = TRUE])
2185421854

21855-
# keep subset of multiple keys until no missing key with changing order of key columns
21855+
# keep sub-key in case of multiple keys, even with new columns and changing column order
2185621856
DT = data.table(V1 = 1:2, V2 = 3:4, V3 = 5:6, key = c("V1", "V2", "V3"))
2185721857
test(2344.04, key(DT[, .(V4 = c("b", "a"), V2, V5 = c("y", "x"), V1)]), c("V1", "V2"))

0 commit comments

Comments
 (0)