# std: fuzz test sort stability \(\#20284\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e03026507f6e3f0b60947d9859c1346f64f480b6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e03026507f6e3f0b60947d9859c1346f64f480b6

Requested commit: e03026507f6e3f0b60947d9859c1346f64f480b6

Commit: e03026507f6e3f0b60947d9859c1346f64f480b6

Tree: d6ff64f85bf36e677029f3a677a91d302b870efb

Author: Alex Kladov

Committer: GitHub

## Message

```
std: fuzz test sort stability (#20284)

Stability of std sort was undertested before this change. Add a fuzz
test for more confidence.

Specifically, we used to have a single example test that used an array
of eight elements. That ends up exercising only a tiny fraction of
sorting logic, as it hits a hard-coded sorting network due to small
size.
```

## Parents

- [5afd774db35e1e12cc49aab5b7f134b741545b80](https://git.cafe/gitcafe/zig/commit/5afd774db35e1e12cc49aab5b7f134b741545b80?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e03026507f6e3f0b60947d9859c1346f64f480b6?format=markdown)
