File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3692,12 +3692,12 @@ fn literal_string_method() {
3692
3692
let _lock = sync ! ( ) ;
3693
3693
let src = r#"
3694
3694
fn check() {
3695
- "hello".st~arts_with("he" );
3695
+ "hello".to_lowerca~se( );
3696
3696
}
3697
3697
"# ;
3698
3698
3699
3699
let got = get_definition ( src, None ) ;
3700
- assert_eq ! ( "starts_with " , got. matchstr) ;
3700
+ assert_eq ! ( "to_lowercase " , got. matchstr) ;
3701
3701
}
3702
3702
3703
3703
#[ test]
@@ -3706,13 +3706,12 @@ fn literal_string_completes() {
3706
3706
let src = r#"
3707
3707
fn in_let() {
3708
3708
let foo = "hello";
3709
- foo.end~s_with("lo");
3709
+ foo.to_lowerc~
3710
3710
}
3711
3711
"# ;
3712
3712
3713
- let got = get_all_completions ( src, None ) ;
3714
- assert_eq ! ( 1 , got. len( ) ) ;
3715
- assert_eq ! ( "ends_with" , got[ 0 ] . matchstr) ;
3713
+ let got = get_only_completion ( src, None ) ;
3714
+ assert_eq ! ( "to_lowercase" , got. matchstr) ;
3716
3715
}
3717
3716
3718
3717
#[ test]
You can’t perform that action at this time.
0 commit comments