Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marisa committed Nov 11, 2019
1 parent ec2d4bd commit 48c35bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ fn get_hint_for_single_test() {
.assert()
.code(0)
.stdout("Hello!\n");
}

#[test]
fn all_exercises_require_confirmation() {
Expand Down

0 comments on commit 48c35bc

Please sign in to comment.