Skip to content

Commit 37d306b

Browse files
sugar union does not guarantee order retention
1 parent b4db233 commit 37d306b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inst/unitTests/runit.sugar.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,10 @@ test.setdiff <- function(){
718718
}
719719

720720
test.union <- function(){
721-
checkEquals( runit_union( 1:10, 1:5 ), union( 1:10, 1:5 ) )
721+
checkEquals(
722+
sort(runit_union( 1:10, 1:5 )),
723+
sort(union( 1:10, 1:5 ))
724+
)
722725
}
723726

724727
test.intersect <- function(){

0 commit comments

Comments
 (0)