mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
fixed tests for ciphertext fourier
This commit is contained in:
@@ -130,6 +130,4 @@ fn main() {
|
||||
.for_each(|(i, (a, b))| {
|
||||
println!("{}: {} {}", i, a, (*b as f64) / scale);
|
||||
});
|
||||
|
||||
module.free();
|
||||
}
|
||||
|
||||
@@ -150,8 +150,7 @@ impl Scratch {
|
||||
unsafe { &mut *(data as *mut [u8] as *mut Self) }
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn available(&self) -> usize {
|
||||
pub fn available(&self) -> usize {
|
||||
let ptr: *const u8 = self.data.as_ptr();
|
||||
let self_len: usize = self.data.len();
|
||||
let aligned_offset: usize = ptr.align_offset(DEFAULTALIGN);
|
||||
|
||||
@@ -337,8 +337,6 @@ mod tests {
|
||||
assert_eq!(a_dft.raw(), b_dft.raw());
|
||||
}
|
||||
}
|
||||
|
||||
module.free();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -425,7 +423,5 @@ mod tests {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
module.free();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user