Skip to content

Commit a84edb4

Browse files
committed
remove redundant polynomial test
1 parent 47695e1 commit a84edb4

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

rust/catalyst-voting/src/crypto/zk_unit_vector/polynomial.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ pub(crate) fn calculate_polynomial_val(
8989

9090
#[cfg(test)]
9191
mod tests {
92-
use test_strategy::proptest;
93-
9492
use super::*;
9593

9694
#[test]
@@ -126,23 +124,4 @@ mod tests {
126124
Scalar::from(210),
127125
]);
128126
}
129-
130-
const N: usize = 4;
131-
const LOG_N: u32 = 2;
132-
133-
#[proptest]
134-
fn generate_polynomial_test(randomnesses: [BlindingRandomness; LOG_N as usize]) {
135-
for i in 0..N {
136-
for j in 0..N {
137-
let p = generate_polynomial(i, j, &randomnesses);
138-
139-
assert_eq!(p.0.len(), (LOG_N + 1) as usize);
140-
if i == j {
141-
assert_eq!(p.0.last().unwrap(), &Scalar::one());
142-
} else {
143-
assert_eq!(p.0.last().unwrap(), &Scalar::zero());
144-
}
145-
}
146-
}
147-
}
148127
}

0 commit comments

Comments
 (0)