Revert panic_safe test changes

The changes made only a limited improvement for the current small
miri coverage and in general test coverage of the sort implementations.
But they exploded test times from ~13s to ~240s, which is not deemed
worth it.
This commit is contained in:
Lukas Bergdoll 2024-06-17 22:05:35 +02:00
parent 032ad4c4c6
commit 732616998c
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ fn panic_safe() {
let mut rng = test_rng();
let lens = if cfg!(miri) { (1..10).chain(30..36) } else { (1..20).chain(70..MAX_LEN) };
// Miri is too slow (but still need to `chain` to make the types match)
let lens = if cfg!(miri) { (1..10).chain(0..0) } else { (1..20).chain(70..MAX_LEN) };
let moduli: &[u32] = if cfg!(miri) { &[5] } else { &[5, 20, 50] };
for len in lens {