@@ -1393,21 +1393,20 @@ private struct JSONEncoderTests {
1393
1393
_testRoundTrip ( of: testValue)
1394
1394
}
1395
1395
1396
- @Test( arguments: [
1397
- Int128 . min,
1398
- Int128 . min + 1 ,
1399
- - 0x1_0000_0000_0000_0000 ,
1400
- 0x0_8000_0000_0000_0000 ,
1401
- - 1 ,
1402
- 0 ,
1403
- 0x7fff_ffff_ffff_ffff ,
1404
- 0x8000_0000_0000_0000 ,
1405
- 0xffff_ffff_ffff_ffff ,
1406
- 0x1_0000_0000_0000_0000 ,
1407
- . max
1408
- ] )
1409
- func roundTrippingInt128 ( i128: Int128) {
1410
- _testRoundTrip ( of: i128)
1396
+ @Test func roundTrippingInt128 ( ) {
1397
+ for i128 in [ Int128 . min,
1398
+ Int128 . min + 1 ,
1399
+ - 0x1_0000_0000_0000_0000 ,
1400
+ 0x0_8000_0000_0000_0000 ,
1401
+ - 1 ,
1402
+ 0 ,
1403
+ 0x7fff_ffff_ffff_ffff ,
1404
+ 0x8000_0000_0000_0000 ,
1405
+ 0xffff_ffff_ffff_ffff ,
1406
+ 0x1_0000_0000_0000_0000 ,
1407
+ . max] {
1408
+ _testRoundTrip ( of: i128)
1409
+ }
1411
1410
}
1412
1411
1413
1412
@Test func int128 SlowPath( ) throws {
@@ -1434,19 +1433,18 @@ private struct JSONEncoderTests {
1434
1433
}
1435
1434
}
1436
1435
1437
- @Test( arguments: [
1438
- UInt128 . zero,
1439
- 1 ,
1440
- 0x0000_0000_0000_0000_7fff_ffff_ffff_ffff ,
1441
- 0x0000_0000_0000_0000_8000_0000_0000_0000 ,
1442
- 0x0000_0000_0000_0000_ffff_ffff_ffff_ffff ,
1443
- 0x0000_0000_0000_0001_0000_0000_0000_0000 ,
1444
- 0x7fff_ffff_ffff_ffff_ffff_ffff_ffff_ffff ,
1445
- 0x8000_0000_0000_0000_0000_0000_0000_0000 ,
1446
- . max
1447
- ] )
1448
- func roundTrippingUInt128 ( u128: UInt128) {
1449
- _testRoundTrip ( of: u128)
1436
+ @Test func roundTrippingUInt128 ( ) {
1437
+ for u128 in [ UInt128 . zero,
1438
+ 1 ,
1439
+ 0x0000_0000_0000_0000_7fff_ffff_ffff_ffff ,
1440
+ 0x0000_0000_0000_0000_8000_0000_0000_0000 ,
1441
+ 0x0000_0000_0000_0000_ffff_ffff_ffff_ffff ,
1442
+ 0x0000_0000_0000_0001_0000_0000_0000_0000 ,
1443
+ 0x7fff_ffff_ffff_ffff_ffff_ffff_ffff_ffff ,
1444
+ 0x8000_0000_0000_0000_0000_0000_0000_0000 ,
1445
+ . max] {
1446
+ _testRoundTrip ( of: u128)
1447
+ }
1450
1448
}
1451
1449
1452
1450
@Test func uint128 SlowPath( ) throws {
0 commit comments