Skip to content

Commit 38a8e89

Browse files
committed
unit tests for #710
1 parent cf898ab commit 38a8e89

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21685,3 +21685,10 @@ d3 = unserialize(serialize(d2, NULL))
2168521685
test(2340.05, .selfref.ok(d3), FALSE)
2168621686
setDT(d3)
2168721687
test(2340.06, .selfref.ok(d3), TRUE)
21688+
21689+
# Mixing use of data.frame and data.table in R 3.1+ #710
21690+
DF1 = data.frame(x=1:5, y=6:10, z=11:15)
21691+
DF2 = transform(DF1, z = 16:20)
21692+
setorder(setDT(DF2), -z)
21693+
test(2341.1, DF1, data.frame(x=1:5, y=6:10, z=11:15))
21694+
test(2341.2, DF2, data.table(x=5:1, y=10:6, z=20:16))

0 commit comments

Comments
 (0)