Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliozoa committed Mar 16, 2022
1 parent ebafb22 commit efdc2a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/commands/courses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,14 @@ mod tests {
list_courses(&mut io, &mut client).unwrap();

assert!(io.list[0].eq(""), "first line should be empty");
assert!(io.list[1].eq("name"), "Expected 'name', got {}", io.list[1]);
assert!(
io.list[2].eq("mooc-tutustumiskurssi"),
"Expected 'mooc-tutustumiskurssi', got '{}'",
io.list[1].eq("mooc-tutustumiskurssi"),
"Expected 'mooc-tutustumiskurssi', got {}",
io.list[1]
);
assert!(
io.list[2].eq("name"),
"Expected 'name', got '{}'",
io.list[2]
);
}
Expand Down

0 comments on commit efdc2a3

Please sign in to comment.