From efdc2a322b687d0ac88f2c52283980ac3fa8b2cb Mon Sep 17 00:00:00 2001 From: Heliozoa Date: Wed, 16 Mar 2022 14:22:44 +0200 Subject: [PATCH] Fixed test --- src/commands/courses.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/commands/courses.rs b/src/commands/courses.rs index e9d6763..d2980c0 100644 --- a/src/commands/courses.rs +++ b/src/commands/courses.rs @@ -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] ); }