assert deterministic

This commit is contained in:
TheIronBorn 2022-07-08 19:36:21 +00:00 committed by GitHub
parent 6112c84365
commit 1f99bb72dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,9 @@ fn main() {
})
.sum::<usize>();
// assert this is deterministic
assert_eq!(in_circle, 7852263);
// prints something close to 3.14159...
println!(
"π is approximately {}",