summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib.rs b/tests/lib.rs
index 3dbfa55..4ebeebf 100644
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -298,6 +298,10 @@ fn problem_15 () {
None
);
assert_eq!(
+ matasano::unpad_pkcs7(b"ICE ICE BABY\x00"),
+ None
+ );
+ assert_eq!(
matasano::unpad_pkcs7(b"\x04\x04\x04\x04"),
Some(&b""[..])
);