Skip to content

Commit

Permalink
tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed Jun 6, 2024
1 parent c3c71a2 commit 0d994f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions challenges/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ mod tests {
let cargo_toml = challenge_dir.join("Cargo.toml");
let src_lib = challenge_dir.join("src/lib.rs");
let src_starter = challenge_dir.join("src/starter.rs");

// let src_tests = challenge_dir.join("src/tests.rs");
let tests_exist = challenge_dir.join("src/tests.rs").exists()
|| challenge_dir.join("tests/tests.rs").exists();
let tests = challenge_dir.join("tests/tests.rs");

assert!(
description_md.exists(),
Expand All @@ -103,7 +100,7 @@ mod tests {
);
assert!(cargo_toml.exists(), "Missing Cargo.toml in {}", dir_name);
assert!(src_lib.exists(), "Missing src/lib.rs in {}", dir_name);
assert!(tests_exist, "Missing tests, you should have either src/tests.rs or tests/tests.rs available in {}", dir_name);
assert!(tests.exists(), "Missing tests, you should have either src/tests.rs or tests/tests.rs available in {}", dir_name);
assert!(
src_starter.exists(),
"Missing src/starter.rs in {}",
Expand Down

0 comments on commit 0d994f3

Please sign in to comment.