Skip to content

Commit 2749ae2

Browse files
committed
apply formatting suggestion
1 parent 4b9e922 commit 2749ae2

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

inst/tests/tests.Rraw

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21844,19 +21844,7 @@ DT = data.table(V1 = 1:2, key = "V1")
2184421844
test(2344.00, key(DT[, .(V2 = c("b", "a"), V1)]), "V1")
2184521845
test(2344.01, key(DT[, .(V2 = -V1, V1)]), "V1")
2184621846

21847-
d1 = data.table(
21848-
V1 = c(1L, 0L, 1L),
21849-
V2 = c("a", "a", "b"),
21850-
key = "V2"
21851-
)
21852-
d2 = d1[, .(
21853-
V1,
21854-
label = c("one", "zero", "one"),
21855-
V2
21856-
)]
21857-
r = d2[
21858-
data.table(label = "one"),
21859-
on = "label",
21860-
allow.cartesian = TRUE
21861-
]
21847+
d1 = data.table(V1 = c(1L, 0L, 1L), V2 = c("a", "a", "b"), key = "V2")
21848+
d2 = d1[, .(V1, label = c("one", "zero", "one"), V2)]
21849+
r = d2[data.table(label = "one"), on = "label", allow.cartesian = TRUE]
2186221850
test(2344.02, nrow(r), 2L)

0 commit comments

Comments
 (0)