Add tree shrinking for u64 vec

This commit is contained in:
Paul Hauner
2019-04-14 16:50:00 +10:00
parent 9bc0519092
commit da74c4ce74
2 changed files with 31 additions and 16 deletions

View File

@@ -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;