@@ -110,11 +110,12 @@ mod tests {
110110 ] ;
111111
112112 for ( client_version, server_version, expected_result) in test_cases {
113- let result = is_compatible (
114- client_version,
115- server_version,
113+ let result = is_compatible ( client_version, server_version) ;
114+ assert_eq ! (
115+ result, expected_result,
116+ "Failed for client: {:?}, server: {:?}" ,
117+ client_version, server_version
116118 ) ;
117- assert_eq ! ( result, expected_result, "Failed for client: {:?}, server: {:?}" , client_version, server_version) ;
118119 }
119120 }
120121
@@ -125,8 +126,14 @@ mod tests {
125126 ( "1." , VersionParseError :: InvalidFormat ( "1." . to_string( ) ) ) ,
126127 ( ".1" , VersionParseError :: InvalidFormat ( ".1" . to_string( ) ) ) ,
127128 ( ".1." , VersionParseError :: InvalidFormat ( ".1." . to_string( ) ) ) ,
128- ( "1.a.1" , VersionParseError :: InvalidFormat ( "1.a.1" . to_string( ) ) ) ,
129- ( "a.1.1" , VersionParseError :: InvalidFormat ( "a.1.1" . to_string( ) ) ) ,
129+ (
130+ "1.a.1" ,
131+ VersionParseError :: InvalidFormat ( "1.a.1" . to_string( ) ) ,
132+ ) ,
133+ (
134+ "a.1.1" ,
135+ VersionParseError :: InvalidFormat ( "a.1.1" . to_string( ) ) ,
136+ ) ,
130137 ( "" , VersionParseError :: EmptyVersion ) ,
131138 ] ;
132139
0 commit comments