Unified · Split
| @@ -38,10 +38,10 @@ fn invalid_timestsamp() { · 37 unmodified lines | ||
| 38 | 38 | #[test] |
| 39 | 39 | fn invalid_email_of_committer() { |
| 40 | 40 | let actor = gix_actor::SignatureRef { |
| 41 | − name: b"Gregor Hartmann<gh".as_bstr(), | |
| 42 | − email: b"Gregor Hartmann<gh@openoffice.org>".as_bstr(), | |
| 41 | + name: b"Gregor Hartmann".as_bstr(), | |
| 42 | + email: b"gh <Gregor Hartmann<gh@openoffice.org".as_bstr(), | |
| 43 | 43 | time: Time { |
| 44 | − seconds: 1270814970, | |
| 44 | + seconds: 1282910542, | |
| 45 | 45 | offset: 2 * 60 * 60, |
| 46 | 46 | sign: Sign::Plus, |
| 47 | 47 | }, |
| @@ -50,12 +50,12 @@ fn invalid_email_of_committer() { · 2 unmodified lines | ||
| 50 | 50 | CommitRef::from_bytes(&fixture_name("commit", "invalid-actor.txt")) |
| 51 | 51 | .expect("ignore strangely formed actor format"), |
| 52 | 52 | CommitRef { |
| 53 | − tree: b"aee896327aa08c20f9ce80c9060aefe47edc65be".as_bstr(), | |
| 54 | − parents: [b"d93091832789fc586916720da62a341a731fbd66".as_bstr()].into(), | |
| 53 | + tree: b"220738fd4199e95a2b244465168366a73ebdf271".as_bstr(), | |
| 54 | + parents: [b"209fbe2d632761b30b7b17422914e11b93692833".as_bstr()].into(), | |
| 55 | 55 | author: actor, |
| 56 | 56 | committer: actor, |
| 57 | 57 | encoding: None, |
| 58 | − message: b"add methods for tablecontrol".as_bstr(), | |
| 58 | + message: b"build breakers".as_bstr(), | |
| 59 | 59 | extra_headers: vec![] |
| 60 | 60 | } |
| 61 | 61 | ); |
| @@ -124,14 +124,14 @@ fn invalid() { · 123 unmodified lines | ||
| 124 | 124 | assert_eq!( |
| 125 | 125 | TagRef::from_bytes(partial_tag).unwrap_err().to_string(), |
| 126 | 126 | if cfg!(feature = "verbose-object-parsing-errors") { |
| 127 | − "object parsing failed at `tagger Sebasti`" | |
| 127 | + "object parsing failed at `Sebasti`\ninvalid Closing '>' not found\nexpected `<name> <<email>> <timestamp> <+|-><HHMM>`, `tagger <signature>`" | |
| 128 | 128 | } else { |
| 129 | 129 | "object parsing failed" |
| 130 | 130 | } |
| 131 | 131 | ); |
| 132 | 132 | assert_eq!( |
| 133 | 133 | TagRefIter::from_bytes(partial_tag).take_while(Result::is_ok).count(), |
| 134 | − 4, | |
| 134 | + 3, | |
| 135 | 135 | "we can decode some fields before failing" |
| 136 | 136 | ); |
| 137 | 137 | } |