Compare commits

...

3 commits

Author SHA1 Message Date
Alexandr Borodulin 8f3d5db770
Merge b1200de75e into 88b583f2bb 2023-12-02 16:23:04 -08:00
Aleksandr Borodulin b1200de75e Fix tests 2023-10-04 15:43:25 +03:00
Aleksandr Borodulin 370219e1d3 Add message if run next success 2023-10-04 15:28:58 +03:00
2 changed files with 6 additions and 1 deletions

View file

@ -50,6 +50,11 @@ enum RunMode {
// Compile and run the resulting test harness of the given Exercise
pub fn test(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
compile_and_test(exercise, RunMode::NonInteractive, verbose, false)?;
println!(
"Exercise {} is done. Remove {} line to go to the next exercise.",
style(exercise).bold(),
style("`I AM NOT DONE`").bold()
);
Ok(())
}

View file

@ -189,7 +189,7 @@ fn run_test_exercise_does_not_prompt() {
.current_dir("tests/fixture/state")
.assert()
.code(0)
.stdout(predicates::str::contains("I AM NOT DONE").not());
.stdout(predicates::str::contains("Exercise pending_test_exercise.rs is done. Remove `I AM NOT DONE` line to go to the next exercise."));
}
#[test]