()
| 1536 | |
| 1537 | #[test] |
| 1538 | fn test_author_serialization() { |
| 1539 | let author = Author { |
| 1540 | name: "Test User".to_string(), |
| 1541 | email: Some("test@example.com".to_string()), |
| 1542 | identity: None, |
| 1543 | }; |
| 1544 | |
| 1545 | let toml_str = toml::to_string(&author).unwrap(); |
| 1546 | let parsed: Author = toml::from_str(&toml_str).unwrap(); |
| 1547 | assert_eq!(author, parsed); |
| 1548 | } |
| 1549 | |
| 1550 | #[test] |
| 1551 | fn test_global_config_default() { |