()
| 402 | |
| 403 | #[test] |
| 404 | fn test_iter_aligned() { |
| 405 | let input: &[u8] = &[0, 1, 2, 3, 4, 5, 6, 7]; |
| 406 | let buffer: Buffer = Buffer::from(input); |
| 407 | |
| 408 | let bitchunks = buffer.bit_chunks(0, 64); |
| 409 | let result = bitchunks.into_iter().collect::<Vec<_>>(); |
| 410 | |
| 411 | assert_eq!(vec![0x0706050403020100], result); |
| 412 | } |
| 413 | |
| 414 | #[test] |
| 415 | fn test_iter_unaligned() { |
nothing calls this directly
no test coverage detected