This commit is contained in:
nora 2025-03-10 20:21:07 +01:00
parent af84ff7ca6
commit 3c06645479
2 changed files with 5 additions and 4 deletions

View file

@ -11,5 +11,9 @@ owo-colors = "4.2.0"
[profile.release]
debug = 1
[dev-dependencies]
tempfile = "3.18.0"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(slow_tests)'] }

View file

@ -1126,11 +1126,8 @@ mod tests {
use std::io::Write;
#[test]
#[cfg_attr(not(slow_tests), ignore)]
fn exhaustive_decode_no_panic() {
if std::env::var("SLOW_TESTS").is_err() {
return;
}
for i in 0..u32::MAX {
if (i % (2 << 25)) == 0 {
let percent = i as f32 / (u32::MAX as f32);