Skip to content

Commit b15f016

Browse files
authored
Merge pull request #7238 from moiseev/explicit-int32
2 parents c36b537 + ab1422b commit b15f016

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

stdlib/private/StdlibCollectionUnittest/CheckSequenceType.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -593,28 +593,28 @@ public let flatMapTests = [
593593
FlatMapTest(
594594
expected: [ 101 ],
595595
sequence: [ 1 ],
596-
transform: { (x: Int) -> [Int32] in [ x + 100 ] }),
596+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100) ] }),
597597
FlatMapTest(
598598
expected: [ 101, 102 ],
599599
sequence: [ 1, 2 ],
600-
transform: { (x: Int) -> [Int32] in [ x + 100 ] }),
600+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100) ] }),
601601
FlatMapTest(
602602
expected: [ 101, 102, 103 ],
603603
sequence: [ 1, 2, 3 ],
604-
transform: { (x: Int) -> [Int32] in [ x + 100 ] }),
604+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100) ] }),
605605

606606
FlatMapTest(
607607
expected: [ 101, 201 ],
608608
sequence: [ 1 ],
609-
transform: { (x: Int) -> [Int32] in [ x + 100, x + 200 ] }),
609+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100), Int32(x + 200) ] }),
610610
FlatMapTest(
611611
expected: [ 101, 201, 102, 202 ],
612612
sequence: [ 1, 2 ],
613-
transform: { (x: Int) -> [Int32] in [ x + 100, x + 200 ] }),
613+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100), Int32(x + 200) ] }),
614614
FlatMapTest(
615615
expected: [ 101, 201, 102, 202, 103, 203 ],
616616
sequence: [ 1, 2, 3 ],
617-
transform: { (x: Int) -> [Int32] in [ x + 100, x + 200 ] }),
617+
transform: { (x: Int) -> [Int32] in [ Int32(x + 100), Int32(x + 200) ] }),
618618

619619
FlatMapTest(
620620
expected: [ 1_071, 1_075 ],
@@ -790,10 +790,10 @@ public let mapTests = [
790790
[], [],
791791
{ _ -> Int32 in expectUnreachable(); return 0xffff }),
792792

793-
MapTest([ 101 ], [ 1 ], { (x: Int) -> Int32 in x + 100 }),
794-
MapTest([ 101, 102 ], [ 1, 2 ], { (x: Int) -> Int32 in x + 100 }),
795-
MapTest([ 101, 102, 103 ], [ 1, 2, 3 ], { (x: Int) -> Int32 in x + 100 }),
796-
MapTest(Array(101..<200), Array(1..<100), { (x: Int) -> Int32 in x + 100 }),
793+
MapTest([ 101 ], [ 1 ], { (x: Int) -> Int32 in Int32(x + 100) }),
794+
MapTest([ 101, 102 ], [ 1, 2 ], { (x: Int) -> Int32 in Int32(x + 100) }),
795+
MapTest([ 101, 102, 103 ], [ 1, 2, 3 ], { (x: Int) -> Int32 in Int32(x + 100) }),
796+
MapTest(Array(101..<200), Array(1..<100), { (x: Int) -> Int32 in Int32(x + 100) }),
797797
]
798798

799799
public let minMaxTests = [

0 commit comments

Comments
 (0)