File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,12 @@ class TestIndexSet : TestIndexSetSuper {
516
516
expectEqual ( expected, is1. symmetricDifference ( is2) )
517
517
expectEqual ( expected, is2. symmetricDifference ( is1) )
518
518
}
519
+
520
+ do {
521
+ is1 = IndexSet ( [ 0 , 2 ] )
522
+ is2 = IndexSet ( [ 0 , 1 , 2 ] )
523
+ expectEqual ( IndexSet ( integer: 1 ) , is1. symmetricDifference ( is2) )
524
+ }
519
525
}
520
526
521
527
func testIntersection( ) {
@@ -587,7 +593,12 @@ class TestIndexSet : TestIndexSetSuper {
587
593
expectEqual ( expected, is1. intersection ( is2) )
588
594
expectEqual ( expected, is2. intersection ( is1) )
589
595
}
590
-
596
+
597
+ do {
598
+ is1 = IndexSet ( [ 0 , 2 ] )
599
+ is2 = IndexSet ( [ 0 , 1 , 2 ] )
600
+ expectEqual ( is1, is1. intersection ( is2) )
601
+ }
591
602
}
592
603
593
604
func testUnion( ) {
You can’t perform that action at this time.
0 commit comments