#![cfg(feature = "radix")] mod bellerophon; use bellerophon::bellerophon_test; use lexical_util::format::NumberFormatBuilder; const BASE3: u128 = NumberFormatBuilder::from_radix(3); #[test] fn bellerophon_radix_test() { // Checking the exact rounding of the digits close to 5e-324. bellerophon_test::(5, -640, false, 4172256988254845, 10); bellerophon_test::(2, -679, false, 0, 0); bellerophon_test::(3, -679, false, 1, 0); bellerophon_test::(6, -680, false, 0, 0); bellerophon_test::(7, -680, false, 1, 0); bellerophon_test::(20, -681, false, 0, 0); bellerophon_test::(21, -681, false, 1, 0); bellerophon_test::(61, -682, false, 0, 0); bellerophon_test::(62, -682, false, 1, 0); bellerophon_test::(184, -683, false, 0, 0); bellerophon_test::(185, -683, false, 1, 0); bellerophon_test::(554, -684, false, 0, 0); bellerophon_test::(555, -684, false, 1, 0); }