small example in tests

This commit is contained in:
NikVolf 2016-12-22 14:13:09 +03:00
parent d43843a9c6
commit 84596eb2d1
1 changed files with 7 additions and 0 deletions

View File

@ -2287,4 +2287,11 @@ mod tests {
let x1septima_right: U256 = "00022cca1da3f6e5722b7d3cc5bbfb486465ebc5a708dd293042f932d7eee119".into();
assert_eq!(x1septima_right, x1septima);
}
#[test]
fn example() {
let mut val: U256 = 1023.into();
for _ in 0..200 { val = val * 2.into() }
assert_eq!(&format!("{}", val), "1643897619276947051879427220465009342380213662639797070513307648");
}
}