Skip to content

Commit d02df36

Browse files
committed
add additional test cases
1 parent c751124 commit d02df36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18355,6 +18355,10 @@ test(2249.17, frev(1:1e2, copy=TRUE), rev(1:1e2))
1835518355
x = 1:3
1835618356
test(2249.21, {frev(x, copy=TRUE); x}, 1:3)
1835718357
test(2249.22, {frev(x, copy=FALSE); x}, 3:1)
18358+
test(2249.23, address(x) == address(frev(x, copy=FALSE)))
18359+
test(2249.24, address(x) != address(frev(x, copy=TRUE)))
18360+
# do not alter on subsets
18361+
test(2249.25, {frev(x[1:2], copy=FALSE); x}, 1:3)
1835818362
# levels
1835918363
f = as.factor(letters)
1836018364
test(2249.31, frev(f, copy=TRUE), rev(f))

0 commit comments

Comments
 (0)