diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2024-01-18 12:40:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2024-01-18 12:40:53 +0100 |
commit | b34c523015b1a59cf05391e78d16e394a3c98c84 (patch) | |
tree | 11f62880cd017f41470b86cbcb870258a61bda5d /openpgp | |
parent | a69b92374ee41999fd7c770efce5fa7f35393d02 (diff) |
openpgp: Improve test.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/serialize/cert.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/serialize/cert.rs b/openpgp/src/serialize/cert.rs index 30ed69a4..2702fda6 100644 --- a/openpgp/src/serialize/cert.rs +++ b/openpgp/src/serialize/cert.rs @@ -935,9 +935,11 @@ mod test { ($a: expr, $b: expr, $expectation: expr) => {{ let a = $a; let b = $b; - let serialized_eq = a.to_vec()? == b.to_vec()?; let eq = a == b; + let serialized_eq = a.to_vec()? == b.to_vec()?; + let armored_eq = a.armored().to_vec()? == b.armored().to_vec()?; assert_eq!(serialized_eq, eq); + assert_eq!(armored_eq, eq); assert_eq!(eq, $expectation); }}; } |