f4jumble: Test both directions against test vectors

This commit is contained in:
str4d 2021-05-20 14:16:39 +01:00 committed by GitHub
parent 1dcba34167
commit 35dadc7f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,8 @@ mod tests {
for v in test_vectors() {
let jumbled = f4jumble(&v.normal).unwrap();
assert_eq!(jumbled, v.jumbled);
let unjumbled = f4jumble_inv(&v.jumbled).unwrap();
assert_eq!(unjumbled, v.normal);
}
}
}