Skip to content

Commit 5114871

Browse files
remove test condition about any(nzchar(nm))
1 parent 311f145 commit 5114871

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

inst/tests/tests.Rraw

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21418,10 +21418,5 @@ test(2330.3, as.data.table(list(y, x), keep.rownames=TRUE), data.table(rn=c("A",
2141821418
test(2330.4, as.data.table(data.frame(x, y), keep.rownames=TRUE), data.table(rn=c("A", "B", "C"), x=1:3, y=4:6))
2141921419
test(2330.5, as.data.table(data.frame(y, x), keep.rownames=TRUE), data.table(rn=c("A", "B", "C"), y=4:6, x=1:3))
2142021420

21421-
a <- setNames(7:9, c("", "", "")) # test condition about any(nzchar(valid_names))
21422-
test(2330.6, as.data.table(list(a), keep.rownames=TRUE), data.table(V1=7:9))
21423-
b <- setNames(10:12, c("", "B", ""))
21424-
test(2330.7, as.data.table(list(b), keep.rownames=TRUE), data.table(rn=c("", "B", ""), V1=10:12))
21425-
2142621421
DF <- data.frame(row.names = letters[1:6], V = 1:6) # Test data.frame with explicit rownames
2142721422
test(2330.8, as.data.table(list(a = 6:1, DF), keep.rownames=TRUE), data.table(rn=letters[1:6], a=6:1, V=1:6))

0 commit comments

Comments
 (0)