From 48c35bcfbc251bcfc8d8a2abaa141e260209c285 Mon Sep 17 00:00:00 2001 From: marisa Date: Mon, 11 Nov 2019 17:28:19 +0100 Subject: [PATCH] fix tests --- src/exercise.rs | 4 ++++ tests/integration_tests.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/src/exercise.rs b/src/exercise.rs index be59284..b6c28da 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -142,8 +142,10 @@ mod test { #[test] fn test_pending_state() { let exercise = Exercise { + name: "pending_exercise".into(), path: PathBuf::from("tests/fixture/state/pending_exercise.rs"), mode: Mode::Compile, + hint: String::new(), }; let state = exercise.state(); @@ -181,8 +183,10 @@ mod test { #[test] fn test_finished_exercise() { let exercise = Exercise { + name: "finished_exercise".into(), path: PathBuf::from("tests/fixture/state/finished_exercise.rs"), mode: Mode::Compile, + hint: String::new(), }; assert_eq!(exercise.state(), State::Done); diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 32f4341..754aa63 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -118,6 +118,7 @@ fn get_hint_for_single_test() { .assert() .code(0) .stdout("Hello!\n"); +} #[test] fn all_exercises_require_confirmation() {