File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,10 @@ fn install_adds_path() {
499
499
expect_ok ( config, & [ "rustup-init" , "-y" ] ) ;
500
500
501
501
let path = config. cargodir . join ( "bin" ) . to_string_lossy ( ) . to_string ( ) ;
502
- assert ! ( get_path( ) . unwrap( ) . contains( & path) ) ;
502
+ assert ! (
503
+ get_path( ) . unwrap( ) . contains( & path) ,
504
+ format!( "`{}` not in `{}`" , get_path( ) . unwrap( ) , & path)
505
+ ) ;
503
506
} ) ;
504
507
}
505
508
@@ -558,7 +561,7 @@ fn install_doesnt_modify_path_if_passed_no_modify_path() {
558
561
. unwrap ( ) ;
559
562
let new_path = environment. get_raw_value ( "PATH" ) . unwrap ( ) ;
560
563
561
- assert ! ( old_path == new_path) ;
564
+ assert_eq ! ( old_path, new_path) ;
562
565
} ) ;
563
566
}
564
567
@@ -1155,7 +1158,7 @@ fn install_doesnt_mess_with_a_non_unicode_path() {
1155
1158
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
1156
1159
. unwrap ( ) ;
1157
1160
let path = environment. get_raw_value ( "PATH" ) . unwrap ( ) ;
1158
- assert ! ( path. bytes == reg_value. bytes) ;
1161
+ assert_eq ! ( path. bytes, reg_value. bytes) ;
1159
1162
} ) ;
1160
1163
}
1161
1164
You can’t perform that action at this time.
0 commit comments