File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
stdlib/private/StdlibCollectionUnittest Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,19 @@ self.test("\(testNamePrefix).append(contentsOf:)/semantics") {
608
608
}
609
609
}
610
610
611
+ self . test ( " \( testNamePrefix) .OperatorPlusEquals " ) {
612
+ for test in appendContentsOfTests {
613
+ var c = makeWrappedCollection ( test. collection)
614
+ let newElements =
615
+ MinimalCollection ( elements: test. newElements. map ( wrapValue) )
616
+ c += newElements
617
+ expectEqualSequence (
618
+ test. expected,
619
+ c. map { extractValue ( $0) . value } ,
620
+ stackTrace: SourceLocStack ( ) . with ( test. loc) )
621
+ }
622
+ }
623
+
611
624
//===----------------------------------------------------------------------===//
612
625
// insert()
613
626
//===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments