]>
git.proxmox.com Git - rustc.git/blob - compiler/rustc_data_structures/src/base_n/tests.rs
5 fn test(n
: u128
, base
: usize) {
6 assert_eq
!(Ok(n
), u128
::from_str_radix(&encode(n
, base
), base
as u32));
15 test(u64::MAX
as u128
, base
);
16 test(u128
::MAX
, base
);
18 const N
: u128
= if cfg
!(miri
) { 10 }
else { 1000 }
;