File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
rust/catalyst-voting/src/crypto/zk_unit_vector Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,6 @@ pub(crate) fn calculate_polynomial_val(
8989
9090#[ cfg( test) ]
9191mod 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}
You can’t perform that action at this time.
0 commit comments