Skip to content

Commit 3868767

Browse files
pierrechevalier83Byron
authored andcommitted
Add unit test for missing timestamp in signature (#1542)
1 parent ce5d79c commit 3868767

File tree

1 file changed

+11
-0
lines changed
  • gix-actor/tests/signature

1 file changed

+11
-0
lines changed

gix-actor/tests/signature/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,14 @@ fn parse_timestamp_with_trailing_digits() {
105105
}
106106
);
107107
}
108+
109+
#[test]
110+
fn parse_missing_timestamp() {
111+
assert_eq!(
112+
format!(
113+
"{:?}",
114+
gix_actor::SignatureRef::from_bytes::<()>(b"first last <[email protected]>")
115+
),
116+
"Err(Backtrack(()))".to_string()
117+
);
118+
}

0 commit comments

Comments
 (0)