Skip to content

Commit 49b7bc9

Browse files
fix tests
1 parent 97dec74 commit 49b7bc9

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
@@ -20758,9 +20758,9 @@ as.data.frame.tbl = function(x) {
2075820758
}
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
20761-
test(2302.2, as.data.table(x), data.table(a=c(1, 5, 3), b=c(2, 4, 6)))
20761+
test(2302.2, attr(as.data.table(y), "t1"), attr(as.data.frame(y), "t1"))
2076220762
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)))
20763+
test(2302.3, attr(as.data.table(y), "t1"), attr(as.data.frame(y), "t1"))
2076420764

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

0 commit comments

Comments
 (0)