Skip to content
Snippets Groups Projects

add "long full recoding" test

Merged STEVAN Antoine requested to merge tests into main
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -452,9 +452,12 @@ mod tests {
let mut shards = encode::<F>(data, &Matrix::random(k, n, &mut rng))
.unwrap_or_else(|_| panic!("could not encode {test_case}"));
shards.truncate(k);
for _ in 0..nb_steps {
shards.push(recode_random(&shards, &mut rng).unwrap().unwrap());
shards = (0..k)
.map(|_| recode_random(&shards, &mut rng).unwrap().unwrap())
.collect();
}
try_all_decoding_combinations(data, &shards, k, n, &test_case, Some(100), vec![]);
Loading