()
| 251 | |
| 252 | #[test] |
| 253 | fn test_identity_to_author() { |
| 254 | let identity = Identity::builder("alice") |
| 255 | .email("alice@example.com") |
| 256 | .build() |
| 257 | .unwrap(); |
| 258 | |
| 259 | let author = identity.to_author(); |
| 260 | assert_eq!(author.name, "alice"); |
| 261 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 262 | assert!(author.identity.is_some()); |
| 263 | } |
| 264 | |
| 265 | #[test] |
| 266 | fn test_delegation() { |