()
| 1647 | |
| 1648 | #[test] |
| 1649 | fn test_various_slice_lengths() { |
| 1650 | // Test different slice lengths with same repeat pattern |
| 1651 | let repeat_count = 37; // Arbitrary non-power-of-2 |
| 1652 | |
| 1653 | // Single element |
| 1654 | test_repeat_count(repeat_count, &[42i32]); |
| 1655 | |
| 1656 | // Small slices |
| 1657 | test_repeat_count(repeat_count, &[1i32, 2]); |
| 1658 | test_repeat_count(repeat_count, &[1i32, 2, 3]); |
| 1659 | test_repeat_count(repeat_count, &[1i32, 2, 3, 4]); |
| 1660 | test_repeat_count(repeat_count, &[1i32, 2, 3, 4, 5]); |
| 1661 | |
| 1662 | // Larger slices |
| 1663 | let data_10: Vec<i32> = (0..10).collect(); |
| 1664 | test_repeat_count(repeat_count, &data_10); |
| 1665 | |
| 1666 | let data_100: Vec<i32> = (0..100).collect(); |
| 1667 | test_repeat_count(repeat_count, &data_100); |
| 1668 | |
| 1669 | let data_1000: Vec<i32> = (0..1000).collect(); |
| 1670 | test_repeat_count(repeat_count, &data_1000); |
| 1671 | } |
| 1672 | |
| 1673 | #[test] |
| 1674 | #[should_panic(expected = "failed to round upto multiple of 64")] |
nothing calls this directly
no test coverage detected