Skip to content

Commit 47d97e0

Browse files
committed
extract DT setup from test
1 parent 44eaa7f commit 47d97e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21841,8 +21841,9 @@ test(2343.2, forderv(list(x)), integer(0))
2184121841
# Keep key when new column added before existing key in j
2184221842
# Incorrect key can lead to incorrect join result #7364
2184321843
local({
21844-
test(2344.00, key(data.table(V1 = 1:2, key = "V1")[, .(V2 = c("b", "a"), V1)]), "V1")
21845-
test(2344.01, key(data.table(V1 = 1:2, key = "V1")[, .(V2 = -V1, V1)]), "V1")
21844+
DT = data.table(V1 = 1:2, key = "V1")
21845+
test(2344.00, key(DT[, .(V2 = c("b", "a"), V1)]), "V1")
21846+
test(2344.01, key(DT[, .(V2 = -V1, V1)]), "V1")
2184621847

2184721848
d1 = data.table(
2184821849
V1 = c(1L, 0L, 1L),

0 commit comments

Comments
 (0)