We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f781982 commit 7fe0e7aCopy full SHA for 7fe0e7a
src/main.rs
@@ -70,10 +70,10 @@ fn main() -> Result<()> {
70
71
results_out.push_str(&deterministic_cargo_stderr);
72
73
- // if there is no test file at the standard location (tests/<slug>.rs),
74
- // pretend like the test file is empty
75
- let test_file =
76
- std::fs::read_to_string(format!("tests/{}.rs", cli_args.slug)).unwrap_or_default();
+ let snake_slug = cli_args.slug.replace('-', "_");
+ // if there is no test file at the standard location
+ // (tests/<snake_slug>.rs), pretend that the test file is empty
+ let test_file = std::fs::read_to_string(format!("tests/{snake_slug}.rs")).unwrap_or_default();
77
let name_to_code = parse_test_code::parse_file(&test_file);
78
79
let out = convert(
0 commit comments