()
| 664 | |
| 665 | #[test] |
| 666 | fn test_identity_display_short() { |
| 667 | let identity = Identity::builder("alice") |
| 668 | .email("alice@example.com") |
| 669 | .build() |
| 670 | .unwrap(); |
| 671 | |
| 672 | assert_eq!(identity.display_short(), "alice <alice@example.com>"); |
| 673 | |
| 674 | let identity2 = Identity::builder("bob").build().unwrap(); |
| 675 | assert_eq!(identity2.display_short(), "bob"); |
| 676 | } |
| 677 | |
| 678 | #[test] |
| 679 | fn test_identity_to_author() { |