mirror of
https://github.com/circify/circ.git
synced 2026-04-21 03:00:54 -04:00
Fix build:
I forgot to run the tests, and one of them failed to build (cause: a bls12_381 version upgrade that I triggered). Fixed now.
This commit is contained in:
@@ -134,13 +134,13 @@ mod test {
|
||||
#[quickcheck]
|
||||
fn int_to_ff_random(BlsScalar(i): BlsScalar) -> bool {
|
||||
let by_fn = int_to_ff::<Scalar>(&i);
|
||||
let by_str = Scalar::from_str(&format!("{}", i)).unwrap();
|
||||
let by_str = Scalar::from_str_vartime(&format!("{}", i)).unwrap();
|
||||
by_fn == by_str
|
||||
}
|
||||
|
||||
fn convert(i: Integer) {
|
||||
let by_fn = int_to_ff::<Scalar>(&i);
|
||||
let by_str = Scalar::from_str(&format!("{}", i)).unwrap();
|
||||
let by_str = Scalar::from_str_vartime(&format!("{}", i)).unwrap();
|
||||
assert_eq!(by_fn, by_str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user