fix tests
This commit is contained in:
parent
ec2d4bd3ee
commit
48c35bcfbc
|
@ -142,8 +142,10 @@ mod test {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_pending_state() {
|
fn test_pending_state() {
|
||||||
let exercise = Exercise {
|
let exercise = Exercise {
|
||||||
|
name: "pending_exercise".into(),
|
||||||
path: PathBuf::from("tests/fixture/state/pending_exercise.rs"),
|
path: PathBuf::from("tests/fixture/state/pending_exercise.rs"),
|
||||||
mode: Mode::Compile,
|
mode: Mode::Compile,
|
||||||
|
hint: String::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let state = exercise.state();
|
let state = exercise.state();
|
||||||
|
@ -181,8 +183,10 @@ mod test {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_finished_exercise() {
|
fn test_finished_exercise() {
|
||||||
let exercise = Exercise {
|
let exercise = Exercise {
|
||||||
|
name: "finished_exercise".into(),
|
||||||
path: PathBuf::from("tests/fixture/state/finished_exercise.rs"),
|
path: PathBuf::from("tests/fixture/state/finished_exercise.rs"),
|
||||||
mode: Mode::Compile,
|
mode: Mode::Compile,
|
||||||
|
hint: String::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
assert_eq!(exercise.state(), State::Done);
|
assert_eq!(exercise.state(), State::Done);
|
||||||
|
|
|
@ -118,6 +118,7 @@ fn get_hint_for_single_test() {
|
||||||
.assert()
|
.assert()
|
||||||
.code(0)
|
.code(0)
|
||||||
.stdout("Hello!\n");
|
.stdout("Hello!\n");
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn all_exercises_require_confirmation() {
|
fn all_exercises_require_confirmation() {
|
||||||
|
|
Loading…
Reference in a new issue