summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-11-18 11:13:23 +0100
committerJustus Winter <justus@sequoia-pgp.org>2022-11-18 11:16:10 +0100
commit495f81e831f657bc5adb46d5f11320c9cb7ba442 (patch)
treeacf979b861556298dc836ff43030cb2133f2789c /openpgp/src/cert
parent40aaa2dd2f7e825efb18b6869c5a7a1724ab60fb (diff)
openpgp: Improve tests with marker packets.
Diffstat (limited to 'openpgp/src/cert')
-rw-r--r--openpgp/src/cert/parser/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/openpgp/src/cert/parser/mod.rs b/openpgp/src/cert/parser/mod.rs
index 32270b48..b98f286b 100644
--- a/openpgp/src/cert/parser/mod.rs
+++ b/openpgp/src/cert/parser/mod.rs
@@ -1205,6 +1205,14 @@ mod test {
CertParser::from(
PacketParser::from_bytes(&testy_with_marker).unwrap())
.next().unwrap().unwrap();
+
+ let mut testy_with_marker = Vec::new();
+ testy_with_marker.extend_from_slice(crate::tests::key("testy.pgp"));
+ Packet::Marker(Default::default())
+ .serialize(&mut testy_with_marker).unwrap();
+ CertParser::from(
+ PacketParser::from_bytes(&testy_with_marker).unwrap())
+ .next().unwrap().unwrap();
}
#[test]