mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
add failing test
This commit is contained in:
parent
f54fef85aa
commit
6c42eb1930
1 changed files with 7 additions and 0 deletions
|
@ -504,6 +504,13 @@ fn func(foo: i32) { if true { <|>foo; }; }
|
||||||
assert_eq!(trim_markup_opt(hover.info.first()), Some("i32"));
|
assert_eq!(trim_markup_opt(hover.info.first()), Some("i32"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn hover_for_param_edge() {
|
||||||
|
let (analysis, position) = single_file_with_position("fn func(<|>foo: i32) {}");
|
||||||
|
let hover = analysis.hover(position).unwrap().unwrap();
|
||||||
|
assert_eq!(trim_markup_opt(hover.info.first()), Some("i32"));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_type_of_for_function() {
|
fn test_type_of_for_function() {
|
||||||
let (analysis, range) = single_file_with_range(
|
let (analysis, range) = single_file_with_range(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue