Skip to content

Commit 6315b49

Browse files
committed
reinstate intersect test with added sort()
1 parent 7a22d21 commit 6315b49

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* inst/unitTests/runit.Date.R (test.Date.formating): Ditto
55
(test.Datetime.formating): Ditto
66

7+
* inst/unitTests/runit.sugar.R (test.intersect): Added sort() around
8+
call to Sugar's intersect to ensure sorted output with g++-6.*
9+
710
2016-11-27 Dirk Eddelbuettel <[email protected]>
811

912
* inst/include/Rcpp/date_datetime/Date.h (format, operator<<): Added

inst/unitTests/runit.sugar.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,9 @@ if (.runThisTest) {
708708
checkEquals(sort(runit_union( 1:10, 1:5 )), sort(union( 1:10, 1:5 )))
709709
}
710710

711-
# test.intersect <- function(){
712-
# checkEquals( runit_intersect( 1:10, 1:5 ), intersect( 1:10, 1:5 ) )
713-
# }
711+
test.intersect <- function(){
712+
checkEquals(sort(runit_intersect(1:10, 1:5)), intersect(1:10, 1:5))
713+
}
714714

715715
test.clamp <- function(){
716716
r_clamp <- function(a, x, b) pmax(a, pmin(x, b) )

0 commit comments

Comments
 (0)