()
| 3149 | |
| 3150 | |
| 3151 | def test_partition_nth_null_placement(): |
| 3152 | data = list(range(10)) + [None] * 10 |
| 3153 | random.shuffle(data) |
| 3154 | |
| 3155 | for pivot in (0, 7, 13, 19): |
| 3156 | for null_placement in ("at_start", "at_end"): |
| 3157 | indices = pc.partition_nth_indices(data, pivot=pivot, |
| 3158 | null_placement=null_placement) |
| 3159 | check_partition_nth(data, indices, pivot, null_placement) |
| 3160 | |
| 3161 | |
| 3162 | def test_select_k_array(): |
nothing calls this directly
no test coverage detected