()
| 548 | |
| 549 | #[test] |
| 550 | fn test_binary_content() { |
| 551 | let content = &[0x00, 0x01, 0x0a, 0x02, 0x03, 0x0a]; |
| 552 | let lines: Vec<_> = LineSplit::new(content, &Separator::Newline).collect(); |
| 553 | |
| 554 | assert_eq!(lines.len(), 2); |
| 555 | assert_eq!(lines[0].content(), &[0x00, 0x01, 0x0a]); |
| 556 | assert_eq!(lines[1].content(), &[0x02, 0x03, 0x0a]); |
| 557 | } |
| 558 | |
| 559 | #[test] |
| 560 | fn test_very_long_line() { |