(size: int, rand: random.Random)
| 82 | |
| 83 | |
| 84 | def list_sort_duplicates(size: int, rand: random.Random) -> list[float]: |
| 85 | assert size >= 4 |
| 86 | result = list_sort_ascending(4, rand) |
| 87 | # Arrange for lots of duplicates. |
| 88 | result = result * (size // 4) |
| 89 | # Force the elements to be distinct objects, else timings can be |
| 90 | # artificially low. |
| 91 | return list(map(abs, result)) |
| 92 | |
| 93 | |
| 94 | def list_sort_equal(size: int, rand: random.Random) -> list[float]: |
nothing calls this directly
no test coverage detected
searching dependent graphs…