This commit is contained in:
Alexandr Borodulin 2024-01-24 09:35:27 +11:00 committed by GitHub
commit beca06bcb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 // Compile and run the resulting test harness of the given Exercise
pub fn test(exercise: &Exercise, verbose: bool) -> Result<(), ()> { pub fn test(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
compile_and_test(exercise, RunMode::NonInteractive, verbose, false)?; 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(()) Ok(())
} }

View file

@ -189,7 +189,7 @@ fn run_test_exercise_does_not_prompt() {
.current_dir("tests/fixture/state") .current_dir("tests/fixture/state")
.assert() .assert()
.code(0) .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] #[test]