Skip to content

Commit

Permalink
added comments to the test to explain why it's there
Browse files Browse the repository at this point in the history
  • Loading branch information
kashbrti committed Nov 6, 2024
1 parent acc304c commit 5946260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/runtime_bignum_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,10 @@ fn test_sqrt_BN() {
assert(sqrt_x * sqrt_x == x);
}


// N.B. this test is only here to check that the barrett reduction is working correctly
// a bug was introduced in 0.3.7 that caused issues with the RSA library
// this test is to check that the bug is fixed
#[test]
fn test_barrett_reduction_fix() {
// the parameters and input that the barrett reduction fails on in the RSA library
Expand Down

0 comments on commit 5946260

Please sign in to comment.