Skip to content

Commit 97dec74

Browse files
Test of simpler class reversal
1 parent 35e2cf6 commit 97dec74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20759,6 +20759,8 @@ as.data.frame.tbl = function(x) {
2075920759
test(2302.1, attr(as.data.table(y), "t1"), attr(as.data.frame(y), "t1"))
2076020760
class(x) = c("data.frame", "data.table", "data.frame") # #6739
2076120761
test(2302.2, as.data.table(x), data.table(a=c(1, 5, 3), b=c(2, 4, 6)))
20762+
class(x) = c("data.frame", "data.table") # duplicate class is overkill
20763+
test(2302.3, as.data.table(x), data.table(a=c(1, 5, 3), b=c(2, 4, 6)))
2076220764

2076320765
# by=foo(KEY) does not retain key (no way to guarantee monotonic transformation), #5583
2076420766
DT = data.table(a=1:2, key='a')

0 commit comments

Comments
 (0)