Skip to content

Commit 33f5ec0

Browse files
fix test numbering
1 parent 5f21a67 commit 33f5ec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21455,9 +21455,9 @@ z <- setNames(1:3, rep("", 3)) # vector with all-empty names # behaviour wi
2145521455
test(2330.7, as.data.table(list(z), keep.rownames=TRUE), data.table(rn="", V1=1:3))
2145621456

2145721457
M <- matrix(1:6, nrow=3, dimnames=list(rep("", 3L), c("V1", "V2"))) # test of list(M) for empty-rowname'd matrix input
21458-
test(2332.8, as.data.table(list(M), keep.rownames=TRUE), data.table(rn="", V1=1:3, V2=4:6))
21458+
test(2330.8, as.data.table(list(M), keep.rownames=TRUE), data.table(rn="", V1=1:3, V2=4:6))
2145921459
# 0-column input can still provide rownames
21460-
test(2332.9, as.data.table(list(M[, 0L], 1:3), keep.rownames=TRUE), data.table(rn="", V2=1:3))
21460+
test(2330.9, as.data.table(list(M[, 0L], 1:3), keep.rownames=TRUE), data.table(rn="", V2=1:3))
2146121461

2146221462
# .SD reference in '...' passed to lapply(FUN=) is recognized as data.table
2146321463
test(2331, lapply(list(data.table(a=1:2)), `[`, j=.SD[1L]), list(data.table(a=1L)))

0 commit comments

Comments
 (0)