summaryrefslogtreecommitdiff
path: root/src/exercise.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/exercise.rs')
-rw-r--r--src/exercise.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exercise.rs b/src/exercise.rs
index f27b545..be59284 100644
--- a/src/exercise.rs
+++ b/src/exercise.rs
@@ -28,8 +28,10 @@ pub struct ExerciseList {
#[derive(Deserialize)]
pub struct Exercise {
+ pub name: String,
pub path: PathBuf,
pub mode: Mode,
+ pub hint: String,
}
#[derive(PartialEq, Debug)]
@@ -128,8 +130,10 @@ mod test {
fn test_clean() {
File::create(&temp_file()).unwrap();
let exercise = Exercise {
+ name: String::from("example"),
path: PathBuf::from("example.rs"),
mode: Mode::Test,
+ hint: String::from(""),
};
exercise.clean();
assert!(!Path::new(&temp_file()).exists());