summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exercise.rs4
1 files changed, 4 insertions, 0 deletions
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);