()
| 725 | #[test] |
| 726 | #[should_panic(expected = "the offset of the new Buffer cannot exceed the existing length")] |
| 727 | fn test_slice_offset_out_of_bound() { |
| 728 | let buf = Buffer::from(&[2, 4, 6, 8, 10]); |
| 729 | buf.slice(6); |
| 730 | } |
| 731 | |
| 732 | #[test] |
| 733 | fn test_access_concurrently() { |