From 9f61db5dbe38538cf06571fcdd5f806e7901e83a Mon Sep 17 00:00:00 2001 From: Alexx Roche Date: Wed, 8 Jul 2020 11:51:12 +0200 Subject: [PATCH 1/2] feat: Remind the user of the hint option (#425) Suggestion from AbdouSeck https://github.com/rust-lang/rustlings/issues/424#issuecomment-639870331 for when the student's code has errors. --- src/verify.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/verify.rs b/src/verify.rs index fac04919..807bea9e 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -65,6 +65,7 @@ fn compile_and_run_interactively(exercise: &Exercise) -> Result { Err(output) => { warn!("Ran {} with errors", exercise); println!("{}", output.stdout); + println!("{}", output.stderr); return Err(()); } }; From bec97b6c76bea09d3a326bb94f9375a5698095e6 Mon Sep 17 00:00:00 2001 From: Calvin Brown Date: Mon, 21 Sep 2020 15:23:19 -0500 Subject: [PATCH 2/2] Fixing test3 to have enough tests to make sure we test all cases --- exercises/tests/tests3.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/tests/tests3.rs b/exercises/tests/tests3.rs index 693b8aa5..06cf7ea7 100644 --- a/exercises/tests/tests3.rs +++ b/exercises/tests/tests3.rs @@ -18,4 +18,9 @@ mod tests { fn is_true_when_even() { assert!(); } + + #[test] + fn is_false_when_even() { + assert!(); + } }