rust/library/core/tests/num
bors 7200da0217 Auto merge of #93873 - Stovent:big-ints, r=m-ou-se
Reimplement `carrying_add` and `borrowing_sub` for signed integers.

As per the discussion in #85532, this PR reimplements `carrying_add` and `borrowing_sub` for signed integers.

It also adds unit tests for both unsigned and signed integers, emphasing on the behaviours of the methods.
2022-09-09 00:59:08 +00:00
..
dec2flt Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
flt2dec Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
bignum.rs Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
const_from.rs Add test for int to float 2021-08-07 19:03:34 +02:00
i8.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i16.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i32.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i64.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
i128.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
ieee754.rs Add IEEE754 tests 2021-03-22 17:02:06 -07:00
int_log.rs Rename integer log* methods to ilog* 2022-08-09 10:20:49 -07:00
int_macros.rs Implement carrying_add and borrowing_sub on signed numbers 2022-05-30 18:32:27 -04:00
mod.rs better def of is signed in tests. 2022-04-11 07:37:53 +01:00
nan.rs Update tests to remove old numeric constants 2020-11-29 00:55:55 -05:00
ops.rs Remove unused macro rules 2022-04-18 23:28:06 +02:00
u8.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u16.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u32.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u64.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
u128.rs Update int_roundings methods from feedback 2022-05-04 23:20:29 -04:00
uint_macros.rs Implement carrying_add and borrowing_sub on signed numbers 2022-05-30 18:32:27 -04:00
wrapping.rs Miri/CTFE: properly treat overflow in (signed) division/rem as UB 2022-03-01 20:39:51 -05:00