Skip to content

Commit 48c35bc

Browse files
author
marisa
committed
fix tests
1 parent ec2d4bd commit 48c35bc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/exercise.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ mod test {
142142
#[test]
143143
fn test_pending_state() {
144144
let exercise = Exercise {
145+
name: "pending_exercise".into(),
145146
path: PathBuf::from("tests/fixture/state/pending_exercise.rs"),
146147
mode: Mode::Compile,
148+
hint: String::new(),
147149
};
148150

149151
let state = exercise.state();
@@ -181,8 +183,10 @@ mod test {
181183
#[test]
182184
fn test_finished_exercise() {
183185
let exercise = Exercise {
186+
name: "finished_exercise".into(),
184187
path: PathBuf::from("tests/fixture/state/finished_exercise.rs"),
185188
mode: Mode::Compile,
189+
hint: String::new(),
186190
};
187191

188192
assert_eq!(exercise.state(), State::Done);

tests/integration_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ fn get_hint_for_single_test() {
118118
.assert()
119119
.code(0)
120120
.stdout("Hello!\n");
121+
}
121122

122123
#[test]
123124
fn all_exercises_require_confirmation() {

0 commit comments

Comments
 (0)