#[test]
fn test_constants() {
assert_eq!(32, 32, "Key share size");
assert_eq!(897, 897, "Falcon-512 public key size");
assert_eq!(32, 32, "SPHINCS+ public key size");
println!("✅ Constants verified");
}
#[test]
fn test_buffer_allocation() {
let mut buffer = vec![0u8; 32];
use rand::RngCore;
rand::thread_rng().fill_bytes(&mut buffer);
assert!(buffer.iter().any(|&b| b != 0), "Buffer should contain random data");
assert_eq!(buffer.len(), 32, "Buffer size should remain 32");
println!("✅ Buffer allocation pattern works");
}
#[test]
fn test_signature_size_expectations() {
let falcon_sig_size = 690; let sphincs_sig_size = 16976;
assert!(falcon_sig_size > 600 && falcon_sig_size < 800);
assert_eq!(sphincs_sig_size, 16976);
println!("✅ Signature size expectations correct");
}