mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-28 00:00:03 +03:00
Add message if run next success
This commit is contained in:
parent
d15096f0df
commit
370219e1d3
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue