Skip to content

Commit a386f74

Browse files
author
Lance Parker
committed
Removed more occurrences of the incorrect comment
1 parent 135b9b0 commit a386f74

File tree

3 files changed

+0
-38
lines changed

3 files changed

+0
-38
lines changed

validation-test/stdlib/Arrays.swift.gyb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,6 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.Generate") {
570570
values.append(value.value)
571571
}
572572
expectEqual(values, [1010, 1020, 1030])
573-
// The following is not required by the IteratorProtocol protocol, but
574-
// it is a nice QoI.
575573
expectNil(iter.next())
576574
expectNil(iter.next())
577575
expectNil(iter.next())
@@ -585,8 +583,6 @@ ArrayTestSuite.test("BridgedFromObjC.Verbatim.Generate_Empty") {
585583

586584
var iter = a.makeIterator()
587585
expectNil(iter.next())
588-
// The following is not required by the IteratorProtocol protocol, but
589-
// it is a nice QoI.
590586
expectNil(iter.next())
591587
expectNil(iter.next())
592588
expectNil(iter.next())
@@ -600,8 +596,6 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Empty") {
600596

601597
var iter = a.makeIterator()
602598
expectNil(iter.next())
603-
// The following is not required by the IteratorProtocol protocol, but
604-
// it is a nice QoI.
605599
expectNil(iter.next())
606600
expectNil(iter.next())
607601
expectNil(iter.next())
@@ -623,8 +617,6 @@ ArrayTestSuite.test("BridgedFromObjC.Verbatim.Generate_Huge") {
623617
expectedValues += [1000 + i]
624618
}
625619
expectEqual(values, expectedValues)
626-
// The following is not required by the IteratorProtocol protocol, but
627-
// it is a nice QoI.
628620
expectNil(iter.next())
629621
expectNil(iter.next())
630622
expectNil(iter.next())
@@ -646,8 +638,6 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Huge") {
646638
expectedValues += [1000 + i]
647639
}
648640
expectEqual(values, expectedValues)
649-
// The following is not required by the IteratorProtocol protocol, but
650-
// it is a nice QoI.
651641
expectNil(iter.next())
652642
expectNil(iter.next())
653643
expectNil(iter.next())

validation-test/stdlib/Dictionary.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2773,8 +2773,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Verbatim.Generate") {
27732773
pairs.append(kv)
27742774
}
27752775
assert(equalsUnordered(pairs, [ (10, 1010), (20, 1020), (30, 1030) ]))
2776-
// The following is not required by the IteratorProtocol protocol, but
2777-
// it is a nice QoI.
27782776
assert(iter.next() == nil)
27792777
assert(iter.next() == nil)
27802778
assert(iter.next() == nil)
@@ -2793,8 +2791,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Nonverbatim.Generate") {
27932791
pairs.append(kv)
27942792
}
27952793
assert(equalsUnordered(pairs, [ (10, 1010), (20, 1020), (30, 1030) ]))
2796-
// The following is not required by the IteratorProtocol protocol, but
2797-
// it is a nice QoI.
27982794
assert(iter.next() == nil)
27992795
assert(iter.next() == nil)
28002796
assert(iter.next() == nil)
@@ -2811,8 +2807,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Verbatim.Generate_Empty") {
28112807
// <rdar://problem/16811736> Optional tuples are broken as optionals regarding == comparison
28122808
// assert(iter.next() == .none)
28132809
assert(iter.next() == nil)
2814-
// The following is not required by the IteratorProtocol protocol, but
2815-
// it is a nice QoI.
28162810
assert(iter.next() == nil)
28172811
assert(iter.next() == nil)
28182812
assert(iter.next() == nil)
@@ -2829,8 +2823,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Empty") {
28292823
// <rdar://problem/16811736> Optional tuples are broken as optionals regarding == comparison
28302824
// assert(iter.next() == .none)
28312825
assert(iter.next() == nil)
2832-
// The following is not required by the IteratorProtocol protocol, but
2833-
// it is a nice QoI.
28342826
assert(iter.next() == nil)
28352827
assert(iter.next() == nil)
28362828
assert(iter.next() == nil)
@@ -2854,8 +2846,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Verbatim.Generate_Huge") {
28542846
expectedPairs += [(i, 1000 + i)]
28552847
}
28562848
assert(equalsUnordered(pairs, expectedPairs))
2857-
// The following is not required by the IteratorProtocol protocol, but
2858-
// it is a nice QoI.
28592849
assert(iter.next() == nil)
28602850
assert(iter.next() == nil)
28612851
assert(iter.next() == nil)
@@ -2878,8 +2868,6 @@ DictionaryTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Huge") {
28782868
expectedPairs += [(i, 1000 + i)]
28792869
}
28802870
assert(equalsUnordered(pairs, expectedPairs))
2881-
// The following is not required by the IteratorProtocol protocol, but
2882-
// it is a nice QoI.
28832871
assert(iter.next() == nil)
28842872
assert(iter.next() == nil)
28852873
assert(iter.next() == nil)
@@ -2904,8 +2892,6 @@ autoreleasepoolIfUnoptimizedReturnAutoreleased {
29042892
}
29052893
var expectedPairs = [ (10, 1111), (20, 1111), (30, 1111), (40, 1111) ]
29062894
assert(equalsUnordered(pairs, expectedPairs))
2907-
// The following is not required by the IteratorProtocol protocol, but
2908-
// it is a nice QoI.
29092895
assert(iter.next() == nil)
29102896
assert(iter.next() == nil)
29112897
assert(iter.next() == nil)
@@ -2930,8 +2916,6 @@ autoreleasepoolIfUnoptimizedReturnAutoreleased {
29302916
}
29312917
var expectedPairs = [ (10, 1111), (20, 1111), (30, 1111), (40, 1111) ]
29322918
assert(equalsUnordered(pairs, expectedPairs))
2933-
// The following is not required by the IteratorProtocol protocol, but
2934-
// it is a nice QoI.
29352919
assert(iter.next() == nil)
29362920
assert(iter.next() == nil)
29372921
assert(iter.next() == nil)

validation-test/stdlib/Set.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,8 +1965,6 @@ SetTestSuite.test("BridgedFromObjC.Verbatim.Generate") {
19651965
members.append((member as! TestObjCKeyTy).value)
19661966
}
19671967
expectTrue(equalsUnordered(members, [1010, 2020, 3030]))
1968-
// The following is not required by the IteratorProtocol protocol, but
1969-
// it is a nice QoI.
19701968
expectNil(iter.next())
19711969
expectNil(iter.next())
19721970
expectNil(iter.next())
@@ -1984,8 +1982,6 @@ SetTestSuite.test("BridgedFromObjC.Nonverbatim.Generate") {
19841982
members.append(member.value)
19851983
}
19861984
expectTrue(equalsUnordered(members, [1010, 2020, 3030]))
1987-
// The following is not required by the IteratorProtocol protocol, but
1988-
// it is a nice QoI.
19891985
expectNil(iter.next())
19901986
expectNil(iter.next())
19911987
expectNil(iter.next())
@@ -1999,8 +1995,6 @@ SetTestSuite.test("BridgedFromObjC.Verbatim.Generate_Empty") {
19991995

20001996
var iter = s.makeIterator()
20011997
expectNil(iter.next())
2002-
// The following is not required by the IteratorProtocol protocol, but
2003-
// it is a nice QoI.
20041998
expectNil(iter.next())
20051999
expectNil(iter.next())
20062000
expectNil(iter.next())
@@ -2014,8 +2008,6 @@ SetTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Empty") {
20142008

20152009
var iter = s.makeIterator()
20162010
expectNil(iter.next())
2017-
// The following is not required by the IteratorProtocol protocol, but
2018-
// it is a nice QoI.
20192011
expectNil(iter.next())
20202012
expectNil(iter.next())
20212013
expectNil(iter.next())
@@ -2033,8 +2025,6 @@ SetTestSuite.test("BridgedFromObjC.Verbatim.Generate_Huge") {
20332025
members.append((member as! TestObjCKeyTy).value)
20342026
}
20352027
expectTrue(equalsUnordered(members, hugeNumberArray))
2036-
// The following is not required by the IteratorProtocol protocol, but
2037-
// it is a nice QoI.
20382028
expectNil(iter.next())
20392029
expectNil(iter.next())
20402030
expectNil(iter.next())
@@ -2052,8 +2042,6 @@ SetTestSuite.test("BridgedFromObjC.Nonverbatim.Generate_Huge") {
20522042
members.append((member as! TestBridgedKeyTy).value)
20532043
}
20542044
expectTrue(equalsUnordered(members, hugeNumberArray))
2055-
// The following is not required by the IteratorProtocol protocol, but
2056-
// it is a nice QoI.
20572045
expectNil(iter.next())
20582046
expectNil(iter.next())
20592047
expectNil(iter.next())

0 commit comments

Comments
 (0)