bench/suite_bench: use snake case for input files

rust identifiers may not contain -

use _ for files also to avoid confusion of having two names
This commit is contained in:
Noah Hellman 2023-04-10 11:29:40 +02:00
parent 9bdb4c59fc
commit bee3d5d747
4 changed files with 6 additions and 5 deletions

View file

@ -8,12 +8,11 @@ fn main() {
if let Some(name) = entry.file_name().to_str() {
if let Some(name) = name.strip_suffix(".dj") {
if entry.file_type().map_or(false, |ty| !ty.is_dir()) {
let name_snake = name.replace('-', "_");
let input = std::fs::read_to_string(
std::path::Path::new("..").join(entry.file_name()),
)
.ok()?;
return Some((name_snake, input));
return Some((name.to_string(), input));
}
}
}