@@ -1198,10 +1198,13 @@ class TestData : TestDataSuper {
11981198
11991199 // If we append a sequence of elements larger than a single InlineData, the internal append here should buffer.
12001200 // We want to make sure that buffering in this way does not accidentally drop trailing elements on the floor.
1201- d. append ( contentsOf: 0x03 ... 0x17 )
1201+ d. append ( contentsOf: 0x03 ... 0x2F )
12021202 expectEqual ( Data ( [ 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
12031203 0x08 , 0x09 , 0x0A , 0x0B , 0x0C , 0x0D , 0x0E , 0x0F ,
1204- 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ] ) , d)
1204+ 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ,
1205+ 0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ,
1206+ 0x20 , 0x21 , 0x22 , 0x23 , 0x24 , 0x25 , 0x26 , 0x27 ,
1207+ 0x28 , 0x29 , 0x2A , 0x2B , 0x2C , 0x2D , 0x2E , 0x2F ] ) , d)
12051208 }
12061209
12071210 // This test is like test_appendingNonContiguousSequence_exactCount but uses a sequence which reports 0 for its `.underestimatedCount`.
@@ -1220,10 +1223,13 @@ class TestData : TestDataSuper {
12201223
12211224 // If we append a sequence of elements larger than a single InlineData, the internal append here should buffer.
12221225 // We want to make sure that buffering in this way does not accidentally drop trailing elements on the floor.
1223- d. append ( contentsOf: ( 0x03 ... 0x17 ) . makeIterator ( ) ) // `.makeIterator()` produces a sequence whose `.underestimatedCount` is 0.
1226+ d. append ( contentsOf: ( 0x03 ... 0x2F ) . makeIterator ( ) ) // `.makeIterator()` produces a sequence whose `.underestimatedCount` is 0.
12241227 expectEqual ( Data ( [ 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
12251228 0x08 , 0x09 , 0x0A , 0x0B , 0x0C , 0x0D , 0x0E , 0x0F ,
1226- 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ] ) , d)
1229+ 0x10 , 0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 ,
1230+ 0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ,
1231+ 0x20 , 0x21 , 0x22 , 0x23 , 0x24 , 0x25 , 0x26 , 0x27 ,
1232+ 0x28 , 0x29 , 0x2A , 0x2B , 0x2C , 0x2D , 0x2E , 0x2F ] ) , d)
12271233 }
12281234
12291235 func test_sequenceInitializers( ) {
0 commit comments