mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Add tree shrinking for u64 vec
This commit is contained in:
@@ -396,6 +396,15 @@ fn shortened_u64_vec_len_within_pow_2_boundary() {
|
||||
test_u64_vec_modifications(original_vec, modified_vec);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shortened_u64_vec_len_outside_pow_2_boundary() {
|
||||
let original_vec: Vec<u64> = (0..2_u64.pow(6)).collect();
|
||||
|
||||
let modified_vec: Vec<u64> = (0..2_u64.pow(5)).collect();
|
||||
|
||||
test_u64_vec_modifications(original_vec, modified_vec);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn extended_u64_vec_len_within_pow_2_boundary() {
|
||||
let n: u64 = 2_u64.pow(5) - 2;
|
||||
|
||||
Reference in New Issue
Block a user