Skip to content
Snippets Groups Projects

complete the FEC and "linear algebra" tests

Merged STEVAN Antoine requested to merge more-tests into main
+ 7
1
@@ -304,9 +304,11 @@ mod tests {
let mut shards = shards.unwrap();
shards.push(shards[2].recode_with(to_curve(7), &shards[4], to_curve(6)));
shards.push(shards[1].recode_with(to_curve(5), &shards[3], to_curve(4)));
shards.push(shards[n].recode_with(to_curve(3), &shards[n + 1], to_curve(8)));
// n = (2, 4)
// n + 1 = (1, 3)
// n + 2 = (n, n + 1) = ((2, 4), (1, 3))
try_all_decoding_combinations(
data,
@@ -314,7 +316,11 @@ mod tests {
k,
&test_case,
None,
vec![vec![2, 4, n], vec![1, 3, (n + 1)]],
vec![
vec![2, 4, n],
vec![1, 3, (n + 1)],
vec![n, (n + 1), (n + 2)],
],
);
}
Loading