Skip to content

Commit 3aaa7a8

Browse files
add tests
1 parent 4ac709c commit 3aaa7a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21047,14 +21047,14 @@ test(2305, { fread(testDir("issue_6729.txt.bz2")); TRUE })
2104721047
# Test for covering classes[col_name] <- "index"
2104821048
DT = data.table(A = 1:3, B = 4:6)
2104921049
setindex(DT, A)
21050-
test(2306.1, DT, data.table(t(t(DT)), key = "A"))
21050+
test(2306.1, DT, data.table(A = 1:3, B = 4:6, key = "A"))
2105121051
# Test for covering if (is.list(cls)) cls <- unlist(cls)
2105221052
DT = data.table(A = 1:3, B = list(NULL, NULL, NULL))
21053-
test(2306.2, DT, data.table(t(t(DT))))
21053+
test(2306.2, DT, data.table(A = 1:3, B = list(NULL, NULL, NULL)))
2105421054
# Test for covering if (length(cls) == 0) cls <- "unknown"
2105521055
DT = data.table(A = 1:3, B = I(list()))
21056-
test(2306.3, DT, data.table(t(t(DT))))
21056+
test(2306.3, DT, data.table(A = 1:3, B = I(list())))
2105721057
# Test for covering classes[col_name] <- "unknown"
2105821058
DT = data.table(A = 1:3, B = 4:6, C = 7:9)
2105921059
DT[, D := NULL]
21060-
test(2306.4, DT, data.table(t(t(DT))))
21060+
test(2306.4, DT, data.table(A = 1:3, B = 4:6, C = 7:9))

0 commit comments

Comments
 (0)