rust/library/core/tests/num
Chai T. Rex 0cac915211 Improve isqrt tests and add benchmarks
* Choose test inputs more thoroughly and systematically.
* Check that `isqrt` and `checked_isqrt` have equivalent results for
  signed types, either equivalent numerically or equivalent as a panic
  and a `None`.
* Check that `isqrt` has numerically-equivalent results for unsigned
  types and their `NonZero` counterparts.
* Reuse `ilog10` benchmarks, plus benchmarks that use a uniform
  distribution.
2024-08-28 23:06:54 -04:00
..
dec2flt remove obsolete test 2023-04-10 21:57:45 +02:00
flt2dec Reformat use declarations. 2024-07-29 08:26:52 +10:00
bignum.rs Simplification of BigNum::bit_length 2022-01-10 14:18:28 -08:00
const_from.rs fix library and rustdoc tests 2023-04-16 11:38:52 +00:00
float_iter_sum_identity.rs Change neutral element of <fNN as iter::Sum> to neg_zero 2024-08-20 18:45:53 +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 blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
int_log.rs Print the tested value in int_log tests 2024-06-17 19:19:41 -05:00
int_macros.rs Improve isqrt tests and add benchmarks 2024-08-28 23:06:54 -04:00
int_sqrt.rs Improve isqrt tests and add benchmarks 2024-08-28 23:06:54 -04:00
mod.rs Improve isqrt tests and add benchmarks 2024-08-28 23:06:54 -04: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 Remove cfg(test) from library/core 2024-08-25 20:04:26 -04:00
wrapping.rs make const_err a hard error 2022-10-07 18:08:49 +02:00