max / balanced_breakfast
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
1 file changed,
+4 insertions,
-2 deletions
| @@ -441,11 +441,13 @@ | |||
| 441 | 441 | ||
| 442 | 442 | #[test] | |
| 443 | 443 | fn long_article_produces_multiple_pages() { | |
| 444 | + | use std::fmt::Write; | |
| 444 | 445 | let mut html = String::from("<h1>Long</h1>"); | |
| 445 | 446 | for i in 0..200 { | |
| 446 | - | html.push_str(&format!( | |
| 447 | + | let _ = write!( | |
| 448 | + | html, | |
| 447 | 449 | "<p>Paragraph number {i}. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>" | |
| 448 | - | )); | |
| 450 | + | ); | |
| 449 | 451 | } | |
| 450 | 452 | let bytes = render_article(&html, "Long", None).unwrap(); | |
| 451 | 453 | assert!(bytes.starts_with(b"%PDF")); |