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 5cf467b commit 0c08b9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ec/src/hashing/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ fn test_parity_of_cubic_extension_elements() {
let element_test4 = Fq6::new(a4, a1, a2);
let element_test5 = Fq6::new(a1, a5, a2);

assert!(parity(&element_test1), "parity is the oddness of first non-zero coefficient of element represented over the prime field");
assert!(parity(&element_test2), "parity is the oddness of first non-zero coefficient of element represented over the prime field");
assert!(parity(&element_test3));
assert!(parity(&element_test4));
assert!(!parity(&element_test5));
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, "parity is the oddness of first non-zero coefficient of element represented over the prime field");
assert_eq!(parity(&element_test3), true);
assert_eq!(parity(&element_test4), true);
assert_eq!(parity(&element_test5), false);
}

0 comments on commit 0c08b9f

Please sign in to comment.