Skip to content

Commit

Permalink
Update ec/src/hashing/tests.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Nov 14, 2024
1 parent 78ca410 commit 5cf467b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ec/src/hashing/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ fn test_parity_of_quadratic_extension_elements() {
let element_test2 = Fq2::new(Fq::from(1), Fq::from(0));
let element_test3 = Fq2::new(Fq::from(10), Fq::from(5));
let element_test4 = Fq2::new(Fq::from(5), Fq::from(10));
assert!(parity(&element_test1), "parity is the oddness of first non-zero coefficient of element represented over the prime field" );
assert!(parity(&element_test2));
assert!(!parity(&element_test3));
assert!(parity(&element_test4));
assert_eq!(parity(&element_test1), true, "parity is the oddness of first non-zero coefficient of element represented over the prime field" );
assert_eq!(parity(&element_test2), true);
assert_eq!(parity(&element_test3), false);
assert_eq!(parity(&element_test4), true);
}

#[test]
Expand Down

0 comments on commit 5cf467b

Please sign in to comment.