Skip to content

Commit 90f103f

Browse files
passing tests
1 parent d62782d commit 90f103f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

inst/tests/mergelist.Rraw

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ test(2.02, fdistinct(data.table(x=c(1L,1:2)), on="z", mult="last"), error="must
2424
test(2.03, fdistinct(data.table(x=c(1L,1:2)), on="x", mult="last", cols=character()), error="must be non-zero length, non-NA, integer or character columns of")
2525
test(2.04, fdistinct(data.table(x=c(1L,1:2, y=1:3)), on="x", mult="last", copy=NA), error="must be TRUE or FALSE")
2626
local({
27+
addresses = function(x) vapply(x, address, "")
28+
2729
d = data.table(x=1:2, y=1:2)
2830
test(2.05, ans <- fdistinct(d, on="x", mult="last"), d)
2931
test(2.06, intersect(addresses(ans), addresses(d)), character())
@@ -36,10 +38,7 @@ local({
3638
test(2.10, fdistinct(d, on="x", mult="last"), data.table(x=1:2, y=2:3))
3739
setattr(attr(setattr(d, "index", integer()), "index", TRUE), "__x", forderv(d, "x", retGrp=TRUE)) ## retGrp=T index #4386
3840
test(2.11, fdistinct(d, on="x", mult="first"), data.table(x=2:1, y=1:2))
39-
})
4041

41-
local({
42-
d = data.table(x=c(2:1, 2L), y=1:3)
4342
test(3.01, hasindex(d, "x"))
4443
test(3.02, hasindex(d, "x", retGrp=TRUE))
4544
setattr(attr(setattr(d, "index", integer()), "index", TRUE), "__x", forderv(d, "x")) ## retGrp=F index #4386

0 commit comments

Comments
 (0)