@@ -1260,10 +1260,13 @@ class TestData : TestDataSuper {
1260
1260
1261
1261
// If we append a sequence of elements larger than a single InlineData, the internal append here should buffer.
1262
1262
// We want to make sure that buffering in this way does not accidentally drop trailing elements on the floor.
1263
- d. append ( contentsOf: 0x03 ... 0x17 )
1263
+ d. append ( contentsOf: 0x03 ... 0x2F )
1264
1264
expectEqual ( Data ( [ 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
1265
1265
0x08 , 0x09 , 0x0A , 0x0B , 0x0C , 0x0D , 0x0E , 0x0F ,
1266
- 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ] ) , d)
1266
+ 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ,
1267
+ 0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ,
1268
+ 0x20 , 0x21 , 0x22 , 0x23 , 0x24 , 0x25 , 0x26 , 0x27 ,
1269
+ 0x28 , 0x29 , 0x2A , 0x2B , 0x2C , 0x2D , 0x2E , 0x2F ] ) , d)
1267
1270
}
1268
1271
1269
1272
// This test is like test_appendingNonContiguousSequence_exactCount but uses a sequence which reports 0 for its `.underestimatedCount`.
@@ -1282,10 +1285,13 @@ class TestData : TestDataSuper {
1282
1285
1283
1286
// If we append a sequence of elements larger than a single InlineData, the internal append here should buffer.
1284
1287
// We want to make sure that buffering in this way does not accidentally drop trailing elements on the floor.
1285
- d. append ( contentsOf: ( 0x03 ... 0x17 ) . makeIterator ( ) ) // `.makeIterator()` produces a sequence whose `.underestimatedCount` is 0.
1288
+ d. append ( contentsOf: ( 0x03 ... 0x2F ) . makeIterator ( ) ) // `.makeIterator()` produces a sequence whose `.underestimatedCount` is 0.
1286
1289
expectEqual ( Data ( [ 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
1287
1290
0x08 , 0x09 , 0x0A , 0x0B , 0x0C , 0x0D , 0x0E , 0x0F ,
1288
- 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ] ) , d)
1291
+ 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ,
1292
+ 0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ,
1293
+ 0x20 , 0x21 , 0x22 , 0x23 , 0x24 , 0x25 , 0x26 , 0x27 ,
1294
+ 0x28 , 0x29 , 0x2A , 0x2B , 0x2C , 0x2D , 0x2E , 0x2F ] ) , d)
1289
1295
}
1290
1296
1291
1297
func test_sequenceInitializers( ) {
0 commit comments