mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-08-14 14:26:56 +00:00
Fix checking for tests on Windows
This commit is contained in:
parent
bb183c3f66
commit
9065860390
@ -118,7 +118,7 @@ fn check_info_file_exercises(info_file: &InfoFile) -> Result<HashSet<PathBuf>> {
|
||||
);
|
||||
}
|
||||
|
||||
let contains_tests = file_buf.contains("#[test]\n");
|
||||
let contains_tests = file_buf.contains("#[test]");
|
||||
if exercise_info.test {
|
||||
if !contains_tests {
|
||||
bail!(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user