Skip to content
Snippets Groups Projects

complete the FEC and "linear algebra" tests

Merged STEVAN Antoine requested to merge more-tests into main
+ 2
2
@@ -287,7 +287,7 @@ mod tests {
let test_case = format!("TEST | data: {} bytes, k: {}, n: {}", data.len(), k, n);
let shards = encode::<F>(data, &Matrix::random(k, n, &mut rng))
.expect(&format!("could not encode {test_case}"));
.unwrap_or_else(|_| panic!("could not encode {test_case}"));
try_all_decoding_combinations(data, &shards, k, &test_case, None, vec![]);
}
@@ -299,7 +299,7 @@ mod tests {
let test_case = format!("TEST | data: {} bytes, k: {}, n: {}", data.len(), k, n);
let mut shards = encode::<F>(data, &Matrix::random(k, n, &mut rng))
.expect(&format!("could not encode {test_case}"));
.unwrap_or_else(|_| panic!("could not encode {test_case}"));
let recoding_steps = [
vec![2, 4], // = n
Loading