fix tests

This commit is contained in:
marisa
2019-11-11 17:28:19 +01:00
parent ec2d4bd3ee
commit 48c35bcfbc
2 changed files with 5 additions and 0 deletions

View File

@@ -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);