@@ -313,9 +313,9 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.ImmutableArrayIsCopied") {
313
313
unsafeBitCast(nsa, to: Int.self),
314
314
unsafeBitCast(bridgedBack, to: Int.self))
315
315
316
- _fixLifetime (nsa)
317
- _fixLifetime (a)
318
- _fixLifetime (bridgedBack)
316
+ _blackHole (nsa)
317
+ _blackHole (a)
318
+ _blackHole (bridgedBack)
319
319
}
320
320
321
321
ArrayTestSuite.test("BridgedFromObjC.Verbatim.Subscript") {
@@ -432,7 +432,7 @@ ArrayTestSuite.test("BridgedFromObjC.Verbatim.RemoveAll") {
432
432
expectNotEqual(identity2, identity1)
433
433
expectEqual(3, a1.count)
434
434
expectEqual(1010, (a1[0] as! TestObjCValueTy).value)
435
- assert (a2._buffer.capacity < originalCapacity)
435
+ expectLT (a2._buffer.capacity, originalCapacity)
436
436
expectEqual(0, a2.count)
437
437
}
438
438
@@ -500,7 +500,7 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.RemoveAll") {
500
500
expectNotEqual(identity2, identity1)
501
501
expectEqual(3, a1.count)
502
502
expectEqual(1010, a1[0].value)
503
- assert (a2._buffer.capacity < originalCapacity)
503
+ expectLT (a2._buffer.capacity, originalCapacity)
504
504
expectEqual(0, a2.count)
505
505
}
506
506
@@ -519,7 +519,7 @@ ArrayTestSuite.test("BridgedFromObjC.Nonverbatim.RemoveAll") {
519
519
expectNotEqual(identity2, identity1)
520
520
expectEqual(3, a1.count)
521
521
expectEqual(1010, a1[0].value)
522
- assert (a2._buffer.capacity >= originalCapacity)
522
+ expectGE (a2._buffer.capacity, originalCapacity)
523
523
expectEqual(0, a2.count)
524
524
}
525
525
}
@@ -553,8 +553,6 @@ ArrayTestSuite.test("BridgedFromObjC.Verbatim.Generate") {
553
553
values.append((value as! TestObjCValueTy).value)
554
554
}
555
555
expectEqual(values, [1010, 1020, 1030])
556
- // The following is not required by the IteratorProtocol protocol, but
557
- // it is a nice QoI.
558
556
expectNil(iter.next())
559
557
expectNil(iter.next())
560
558
expectNil(iter.next())
@@ -783,7 +781,7 @@ ArrayTestSuite.test("BridgedFromObjC.Verbatim.EqualityTest_Small") {
783
781
ArrayTestSuite.test("BridgedToObjC.Verbatim.Count") {
784
782
let d = getBridgedNSArrayOfRefTypesBridgedVerbatim()
785
783
786
- assert( d.count == 3 )
784
+ expectEqual(3, d.count)
787
785
}
788
786
789
787
ArrayTestSuite.test("BridgedToObjC.Verbatim.ObjectForKey") {
0 commit comments