mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-28 17:53:28 +00:00
Fix checking for tests on Windows
This commit is contained in:
+1
-1
@@ -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 exercise_info.test {
|
||||||
if !contains_tests {
|
if !contains_tests {
|
||||||
bail!(
|
bail!(
|
||||||
|
|||||||
Reference in New Issue
Block a user