Skip to content

Commit

Permalink
bindings/rust/src/pippenger-test_mod.rs: exercize new code path.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 28, 2023
1 parent 168ff67 commit 92628b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings/rust/src/pippenger-test_mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ macro_rules! pippenger_test_mod {
$mult(&mut t, &points[i], &scalars[i * nbytes], nbits);
$add_or_double(&mut naive, &naive, &t);
}
if i < 27 {
let points = $points::from(&points[0..i + 1]);
assert_eq!(naive, points.mult(scalars.as_ref(), nbits));
}
}

let points = $points::from(&points);

assert_eq!(naive, points.mult(scalars.as_ref(), nbits));
}

Expand Down

0 comments on commit 92628b7

Please sign in to comment.