diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-14 16:04:35 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-14 16:04:35 +0100 |
| commit | b5e7df3cefec1e7e7b1fb691394566f156173644 (patch) | |
| tree | e7d590120fdace77fe057ceb9ae5b38e999c03a9 /crates | |
| parent | a6678f3c195b3eae1e1c977f2b4c418e48c404c5 (diff) | |
| download | mihi-b5e7df3cefec1e7e7b1fb691394566f156173644.tar.gz mihi-b5e7df3cefec1e7e7b1fb691394566f156173644.zip | |
Print the exercise enunciate after giving an answer
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/cli/src/run.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<Exercise>) -> 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; |
