We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a17d5 commit facfcc4Copy full SHA for facfcc4
inst/tests/mergelist.Rraw
@@ -474,12 +474,15 @@ test(102.613, copied(ans1, l))
474
test(102.614, copied(ans2, l))
475
ans1 = setmergelist(l, how="left")
476
ans2 = setmergelist(rev(l), how="right")
477
+ans3 = setmergelist(l) # testing default
478
test(102.621, all.equal(ans1, ans2, ignore.col.order=TRUE))
479
test(102.622, ans1, data.table(key="id", region_id=rep(1:2, 8), division_id=rep(1:4, 4), state_id=rep(1:8, 2), id=1:16, population=1))
480
test(102.623, notcopied(ans1, l))
481
test(102.624, notcopied(ans2, rev(l), how="right"))
482
test(102.625, !notcopied(ans1, l, how="right")) ## test notcopied helper function rather than mergelist
483
test(102.626, !notcopied(ans2, rev(l), how="left")) ## test notcopied
484
+test(102.627, all.equal(ans1, ans3))
485
+
486
l = list( ## duplicates on one level
487
fact = data.table(id=1:16, state_id=1:8, population=1, key="id"),
488
state = data.table(state_id=1:8, division_id=1:4, key="state_id"),
0 commit comments