From b5e7df3cefec1e7e7b1fb691394566f156173644 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 14 Jan 2026 16:04:35 +0100 Subject: Print the exercise enunciate after giving an answer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- crates/cli/src/run.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates') diff --git a/crates/cli/src/run.rs b/crates/cli/src/run.rs index 0084a6c..c6ad0a0 100644 --- a/crates/cli/src/run.rs +++ b/crates/cli/src/run.rs @@ -188,6 +188,10 @@ fn run_exercises(exercises: Vec) -> i32 { return 1; }; let solution = remove_exercise_enunciate(solution); + println!( + "Enunciate for '{}':\n\n{}\n\nGiven:\n", + exercise.title, exercise.enunciate + ); if !accepted_diff(solution, exercise.solution) { errors += 1; -- cgit v1.2.3