()
| 418 | |
| 419 | #[test] |
| 420 | fn test_linesplit_only_newlines() { |
| 421 | let content = b"\n\n\n"; |
| 422 | let lines: Vec<_> = LineSplit::new(content, &Separator::Newline).collect(); |
| 423 | |
| 424 | assert_eq!(lines.len(), 3); |
| 425 | for line in &lines { |
| 426 | assert_eq!(line.content(), b"\n"); |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | #[test] |
| 431 | fn test_linesplit_crlf() { |