fixed tests for ciphertext fourier

This commit is contained in:
Jean-Philippe Bossuat
2025-05-15 10:45:06 +02:00
parent 67594e2e3f
commit 723a41acd0
9 changed files with 487 additions and 476 deletions

View File

@@ -130,6 +130,4 @@ fn main() {
.for_each(|(i, (a, b))| {
println!("{}: {} {}", i, a, (*b as f64) / scale);
});
module.free();
}

View File

@@ -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);

View File

@@ -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();
}
}