File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ fn test_multi() {
676
676
"-e" . to_string( ) ,
677
677
"foo" . to_string( ) ,
678
678
"--encrypt" . to_string( ) ,
679
- "foo " . to_string( ) ,
679
+ "bar " . to_string( ) ,
680
680
] ;
681
681
let matches_both = & match opts. parse ( & args_both) {
682
682
Ok ( m) => m,
@@ -700,7 +700,7 @@ fn test_multi() {
700
700
assert_eq ! ( matches_both. opts_str( & [ "e" . to_string( ) ] ) . unwrap( ) , "foo" ) ;
701
701
assert_eq ! (
702
702
matches_both. opts_str( & [ "encrypt" . to_string( ) ] ) . unwrap( ) ,
703
- "foo "
703
+ "bar "
704
704
) ;
705
705
assert_eq ! (
706
706
matches_both
@@ -712,21 +712,21 @@ fn test_multi() {
712
712
matches_both
713
713
. opts_str( & [ "encrypt" . to_string( ) , "e" . to_string( ) ] )
714
714
. unwrap( ) ,
715
- "foo "
715
+ "bar "
716
716
) ;
717
717
718
718
assert_eq ! ( matches_both. opts_str_first( & [ "e" ] ) . unwrap( ) , "foo" ) ;
719
719
assert_eq ! (
720
720
matches_both. opts_str_first( & [ "encrypt" ] ) . unwrap( ) ,
721
- "foo "
721
+ "bar "
722
722
) ;
723
723
assert_eq ! (
724
724
matches_both. opts_str_first( & [ "e" , "encrypt" ] ) . unwrap( ) ,
725
725
"foo"
726
726
) ;
727
727
assert_eq ! (
728
728
matches_both. opts_str_first( & [ "encrypt" , "e" ] ) . unwrap( ) ,
729
- "foo "
729
+ "bar "
730
730
) ;
731
731
assert_eq ! ( matches_both. opts_str_first( & [ "f" ] ) , None ) ;
732
732
assert_eq ! ( matches_both. opts_str_first( no_opts) , None ) ;
You can’t perform that action at this time.
0 commit comments