@@ -310,49 +310,49 @@ Int128Tests.test("Conversion from integers") {
310
310
expectEqual ( Int128 ( truncatingIfNeeded: Int8 . min) , - 0x80 )
311
311
expectEqual ( Int128 ( truncatingIfNeeded: Int8 . max) , 0x0000000000000000_000000000000007f )
312
312
expectEqual ( Int128 ( truncatingIfNeeded: UInt8 . max) , 0x0000000000000000_00000000000000ff )
313
- expectEqual ( Int128 ( truncatingIfNeeded: Int . min) , - 0x8000000000000000 )
314
- expectEqual ( Int128 ( truncatingIfNeeded: Int . max) , 0x0000000000000000_7fffffffffffffff )
315
- expectEqual ( Int128 ( truncatingIfNeeded: UInt . max) , 0x0000000000000000_ffffffffffffffff )
313
+ expectEqual ( Int128 ( truncatingIfNeeded: Int64 . min) , - 0x8000000000000000 )
314
+ expectEqual ( Int128 ( truncatingIfNeeded: Int64 . max) , 0x0000000000000000_7fffffffffffffff )
315
+ expectEqual ( Int128 ( truncatingIfNeeded: UInt64 . max) , 0x0000000000000000_ffffffffffffffff )
316
316
317
317
expectEqual ( Int128 ( exactly: - 1 ) , - 1 )
318
318
expectEqual ( Int128 ( exactly: Int8 . min) , - 0x80 )
319
319
expectEqual ( Int128 ( exactly: Int8 . max) , 0x7f )
320
320
expectEqual ( Int128 ( exactly: UInt8 . max) , 0xff )
321
- expectEqual ( Int128 ( exactly: Int . min) , - 0x8000000000000000 )
322
- expectEqual ( Int128 ( exactly: Int . max) , 0x7fffffffffffffff )
323
- expectEqual ( Int128 ( exactly: UInt . max) , 0xffffffffffffffff )
321
+ expectEqual ( Int128 ( exactly: Int64 . min) , - 0x8000000000000000 )
322
+ expectEqual ( Int128 ( exactly: Int64 . max) , 0x7fffffffffffffff )
323
+ expectEqual ( Int128 ( exactly: UInt64 . max) , 0xffffffffffffffff )
324
324
325
325
expectEqual ( Int128 ( clamping: - 1 ) , - 1 )
326
326
expectEqual ( Int128 ( clamping: Int8 . min) , - 0x80 )
327
327
expectEqual ( Int128 ( clamping: Int8 . max) , 0x7f )
328
328
expectEqual ( Int128 ( clamping: UInt8 . max) , 0xff )
329
- expectEqual ( Int128 ( clamping: Int . min) , - 0x8000000000000000 )
330
- expectEqual ( Int128 ( clamping: Int . max) , 0x7fffffffffffffff )
331
- expectEqual ( Int128 ( clamping: UInt . max) , 0xffffffffffffffff )
329
+ expectEqual ( Int128 ( clamping: Int64 . min) , - 0x8000000000000000 )
330
+ expectEqual ( Int128 ( clamping: Int64 . max) , 0x7fffffffffffffff )
331
+ expectEqual ( Int128 ( clamping: UInt64 . max) , 0xffffffffffffffff )
332
332
333
333
expectEqual ( UInt128 ( truncatingIfNeeded: - 1 ) , 0xffffffffffffffff_ffffffffffffffff )
334
334
expectEqual ( UInt128 ( truncatingIfNeeded: Int8 . min) , 0xffffffffffffffff_ffffffffffffff80 )
335
335
expectEqual ( UInt128 ( truncatingIfNeeded: Int8 . max) , 0x0000000000000000_000000000000007f )
336
336
expectEqual ( UInt128 ( truncatingIfNeeded: UInt8 . max) , 0x0000000000000000_00000000000000ff )
337
- expectEqual ( UInt128 ( truncatingIfNeeded: Int . min) , 0xffffffffffffffff_8000000000000000 )
338
- expectEqual ( UInt128 ( truncatingIfNeeded: Int . max) , 0x0000000000000000_7fffffffffffffff )
339
- expectEqual ( UInt128 ( truncatingIfNeeded: UInt . max) , 0x0000000000000000_ffffffffffffffff )
337
+ expectEqual ( UInt128 ( truncatingIfNeeded: Int64 . min) , 0xffffffffffffffff_8000000000000000 )
338
+ expectEqual ( UInt128 ( truncatingIfNeeded: Int64 . max) , 0x0000000000000000_7fffffffffffffff )
339
+ expectEqual ( UInt128 ( truncatingIfNeeded: UInt64 . max) , 0x0000000000000000_ffffffffffffffff )
340
340
341
341
expectEqual ( UInt128 ( exactly: - 1 ) , nil )
342
342
expectEqual ( UInt128 ( exactly: Int8 . min) , nil )
343
343
expectEqual ( UInt128 ( exactly: Int8 . max) , 0x7f )
344
344
expectEqual ( UInt128 ( exactly: UInt8 . max) , 0xff )
345
- expectEqual ( UInt128 ( exactly: Int . min) , nil )
346
- expectEqual ( UInt128 ( exactly: Int . max) , 0x7fffffffffffffff )
347
- expectEqual ( UInt128 ( exactly: UInt . max) , 0xffffffffffffffff )
345
+ expectEqual ( UInt128 ( exactly: Int64 . min) , nil )
346
+ expectEqual ( UInt128 ( exactly: Int64 . max) , 0x7fffffffffffffff )
347
+ expectEqual ( UInt128 ( exactly: UInt64 . max) , 0xffffffffffffffff )
348
348
349
349
expectEqual ( UInt128 ( clamping: - 1 ) , 0 )
350
350
expectEqual ( UInt128 ( clamping: Int8 . min) , 0 )
351
351
expectEqual ( UInt128 ( clamping: Int8 . max) , 0x7f )
352
352
expectEqual ( UInt128 ( clamping: UInt8 . max) , 0xff )
353
- expectEqual ( UInt128 ( clamping: Int . min) , 0 )
354
- expectEqual ( UInt128 ( clamping: Int . max) , 0x7fffffffffffffff )
355
- expectEqual ( UInt128 ( clamping: UInt . max) , 0xffffffffffffffff )
353
+ expectEqual ( UInt128 ( clamping: Int64 . min) , 0 )
354
+ expectEqual ( UInt128 ( clamping: Int64 . max) , 0x7fffffffffffffff )
355
+ expectEqual ( UInt128 ( clamping: UInt64 . max) , 0xffffffffffffffff )
356
356
}
357
357
}
358
358
0 commit comments