()
| 696 | |
| 697 | #[test] |
| 698 | fn test_identity_display_short() { |
| 699 | let identity = Identity::builder("alice") |
| 700 | .email("alice@example.com") |
| 701 | .build() |
| 702 | .unwrap(); |
| 703 | |
| 704 | assert_eq!(identity.display_short(), "alice <alice@example.com>"); |
| 705 | |
| 706 | let identity2 = Identity::builder("bob").build().unwrap(); |
| 707 | assert_eq!(identity2.display_short(), "bob"); |
| 708 | } |
| 709 | |
| 710 | #[test] |
| 711 | fn test_identity_to_author() { |