Skip to content

Commit facfcc4

Browse files
coverage
1 parent b7a17d5 commit facfcc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inst/tests/mergelist.Rraw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,15 @@ test(102.613, copied(ans1, l))
474474
test(102.614, copied(ans2, l))
475475
ans1 = setmergelist(l, how="left")
476476
ans2 = setmergelist(rev(l), how="right")
477+
ans3 = setmergelist(l) # testing default
477478
test(102.621, all.equal(ans1, ans2, ignore.col.order=TRUE))
478479
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))
479480
test(102.623, notcopied(ans1, l))
480481
test(102.624, notcopied(ans2, rev(l), how="right"))
481482
test(102.625, !notcopied(ans1, l, how="right")) ## test notcopied helper function rather than mergelist
482483
test(102.626, !notcopied(ans2, rev(l), how="left")) ## test notcopied
484+
test(102.627, all.equal(ans1, ans3))
485+
483486
l = list( ## duplicates on one level
484487
fact = data.table(id=1:16, state_id=1:8, population=1, key="id"),
485488
state = data.table(state_id=1:8, division_id=1:4, key="state_id"),

0 commit comments

Comments
 (0)