()
| 586 | |
| 587 | #[test] |
| 588 | fn test_header_has_authors() { |
| 589 | let without = ChangeHeader::new("Test"); |
| 590 | assert!(!without.has_authors()); |
| 591 | |
| 592 | let with = ChangeHeader::builder() |
| 593 | .message("Test") |
| 594 | .author(Author::new("Alice", None::<String>)) |
| 595 | .build(); |
| 596 | assert!(with.has_authors()); |
| 597 | } |
| 598 | |
| 599 | #[test] |
| 600 | fn test_header_first_author() { |