You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: felt/src/lib.rs
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1356,11 +1356,14 @@ mod test {
1356
1356
1357
1357
#[test]
1358
1358
fn sqrt_is_inv_square(x in any::<Felt252>()){
1359
-
// In the regular use case the number upon which sqrt is called will always be a felt (aka a numer lower than cairo_prime)
1360
-
// In order to get a number for which we know its root it is not a good enough solution to square the felt (as we might get something bigger than cairo prime)
1361
-
// We can instead use the square root (using the biguint implementation), to guarantee that its square will be inside the felt range
0 commit comments