This commit is contained in:
Sam Hadow 2025-05-25 16:14:30 +02:00
parent ef30fc89ad
commit 7f6e9dd10d

View File

@ -168,15 +168,9 @@ mod tests {
let lattice = Matrix::new_lattice(noise_bits, ciphertexts).unwrap();
let expected = vec![
int!(8),
int!(8),
int!(12),
int!(0),
int!(5),
int!(0),
int!(0),
int!(0),
int!(5),
int!(8), int!(0), int!(0),
int!(8), int!(5), int!(0),
int!(12), int!(0), int!(5),
];
let mut actual = Vec::new();
for col in 0..3 {
@ -195,7 +189,7 @@ mod tests {
let two_pow = Rational::from(Integer::from(2u64).pow(3));
assert_eq!(lattice[(0, 0)], two_pow);
assert_eq!(lattice[(0, 1)], rational!(8));
assert_eq!(lattice[(0, 2)], rational!(12));
assert_eq!(lattice[(1, 0)], rational!(8));
assert_eq!(lattice[(2, 0)], rational!(12));
}
}