Reflect test case

This commit is contained in:
Yuki Kodama 2020-05-24 22:39:09 +09:00
parent 6c676909dd
commit 4d13691ad1

View file

@ -641,7 +641,7 @@ mod tests {
assert_debug_snapshot!( assert_debug_snapshot!(
do_reference_completion( do_reference_completion(
r" r"
fn with_args(x: i32, y: String) {} fn with_args(x: i32, y: String, _z: bool) {}
fn main() { with_<|> } fn main() { with_<|> }
" "
), ),
@ -649,8 +649,8 @@ mod tests {
[ [
CompletionItem { CompletionItem {
label: "main()", label: "main()",
source_range: 80..85, source_range: 90..95,
delete: 80..85, delete: 90..95,
insert: "main()$0", insert: "main()$0",
kind: Function, kind: Function,
lookup: "main", lookup: "main",
@ -658,12 +658,12 @@ mod tests {
}, },
CompletionItem { CompletionItem {
label: "with_args(…)", label: "with_args(…)",
source_range: 80..85, source_range: 90..95,
delete: 80..85, delete: 90..95,
insert: "with_args(${1:x}, ${2:y})$0", insert: "with_args(${1:x}, ${2:y}, ${3:z})$0",
kind: Function, kind: Function,
lookup: "with_args", lookup: "with_args",
detail: "fn with_args(x: i32, y: String)", detail: "fn with_args(x: i32, y: String, _z: bool)",
trigger_call_info: true, trigger_call_info: true,
}, },
] ]