diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-22 00:54:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-22 00:54:53 +0100 |
commit | 81ada3b61ed8ef14bdb3ff27f30200262d1fee8c (patch) | |
tree | 3c148b8788992355bb44e7effa0b2c703d9b10bc /openpgp | |
parent | 8ce917760514741cb8a8579c6e4a1853786f315e (diff) |
openpgp: Improve test.
- Also try parsing an armored TPK.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/tpk/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/tpk/mod.rs b/openpgp/src/tpk/mod.rs index f8f604dc..12564729 100644 --- a/openpgp/src/tpk/mod.rs +++ b/openpgp/src/tpk/mod.rs @@ -2925,6 +2925,10 @@ mod test { &[ 0xc6, 0x8f ]); assert_eq!(tpk.subkeys.len(), 0, "number of subkeys"); + + let tpk = parse_tpk(bytes!("testy.asc"), i == 0).unwrap(); + assert_eq!(tpk.fingerprint().to_hex(), + "3E8877C877274692975189F5D03F6F865226FE8B"); } } |