1 2 3 4 5 6 7 8 9 10 11 12 13
use aok::{Result, OK}; #[test] fn test() -> Result<()> { let li = [("D", 16), ("-G", 151), ("-!$x", 9553416)]; for i in li { let n = intbin::bin_u64(burl::d(i.0)?); println!("{} = {}", i.0, n); assert_eq!(i.1, n); } OK }