Commit Graph

5 Commits

Author SHA1 Message Date
Ralf Jung 923311c40b min/max_by tests: also check result 2026-04-08 17:59:14 +02:00
Vastargazing 51c4299433 coretests: add argument order regression tests for min_by/max_by/minmax_by
A recent regression swapped the argument order passed to the compare
closure in min_by, max_by and minmax_by (compare(&v2, &v1) instead of
compare(&v1, &v2)). This was fixed, but no regression test was added.

Add tests that record the arguments the compare closure receives and
assert they match (v1, v2) — the documented contract.
2026-04-04 13:34:45 +03:00
mu001999 ff0f239bb1 Remove redundant self usages 2026-02-25 22:51:53 +08:00
Evgenii Zheltonozhskii ff9b1c1d28 Constify Eq, Ord, PartialOrd 2025-09-12 12:39:31 +03:00
bjorn3 b6a3841942 Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00