aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorYuki Kodama <[email protected]>2020-05-24 16:14:56 +0100
committerYuki Kodama <[email protected]>2020-05-25 17:06:25 +0100
commit41d0f7f24ef924440ee710e134c01d6e47056c3f (patch)
tree0bc60de40a9ff7f8682fba36760f995830320d78 /crates
parent408d04764cd00a9f24fce15198ec26d7c74fb4d6 (diff)
Fix test to consider multiple underscores
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/completion/presentation.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs
index 5708ff291..e59f730ff 100644
--- a/crates/ra_ide/src/completion/presentation.rs
+++ b/crates/ra_ide/src/completion/presentation.rs
@@ -672,7 +672,7 @@ mod tests {
672 assert_debug_snapshot!( 672 assert_debug_snapshot!(
673 do_reference_completion( 673 do_reference_completion(
674 r" 674 r"
675 fn with_ignored_args(_foo: i32, b_a_r_: bool) {} 675 fn with_ignored_args(_foo: i32, ___bar: bool, ho_ge_: String) {}
676 fn main() { with_<|> } 676 fn main() { with_<|> }
677 " 677 "
678 ), 678 ),
@@ -680,8 +680,8 @@ mod tests {
680 [ 680 [
681 CompletionItem { 681 CompletionItem {
682 label: "main()", 682 label: "main()",
683 source_range: 94..99, 683 source_range: 110..115,
684 delete: 94..99, 684 delete: 110..115,
685 insert: "main()$0", 685 insert: "main()$0",
686 kind: Function, 686 kind: Function,
687 lookup: "main", 687 lookup: "main",
@@ -689,12 +689,12 @@ mod tests {
689 }, 689 },
690 CompletionItem { 690 CompletionItem {
691 label: "with_ignored_args(…)", 691 label: "with_ignored_args(…)",
692 source_range: 94..99, 692 source_range: 110..115,
693 delete: 94..99, 693 delete: 110..115,
694 insert: "with_ignored_args(${1:foo}, ${2:b_a_r_})$0", 694 insert: "with_ignored_args(${1:foo}, ${2:bar}, ${3:ho_ge_})$0",
695 kind: Function, 695 kind: Function,
696 lookup: "with_ignored_args", 696 lookup: "with_ignored_args",
697 detail: "fn with_ignored_args(_foo: i32, b_a_r_: bool)", 697 detail: "fn with_ignored_args(_foo: i32, ___bar: bool, ho_ge_: String)",
698 trigger_call_info: true, 698 trigger_call_info: true,
699 }, 699 },
700 ] 700 ]