diff options
author | succcubbus <[email protected]> | 2019-12-13 18:54:07 +0000 |
---|---|---|
committer | succcubbus <[email protected]> | 2019-12-13 18:54:07 +0000 |
commit | 6c42eb1930f179bca1867eebcbf82c7bc10dd4c5 (patch) | |
tree | d89b9349b15960db6ef24722f9161f5b937402da /crates | |
parent | f54fef85aa88db44b1d3f6436551595dcb98ab83 (diff) |
add failing test
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 24f7eeed3..b2909bf38 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -505,6 +505,13 @@ fn func(foo: i32) { if true { <|>foo; }; } | |||
505 | } | 505 | } |
506 | 506 | ||
507 | #[test] | 507 | #[test] |
508 | fn hover_for_param_edge() { | ||
509 | let (analysis, position) = single_file_with_position("fn func(<|>foo: i32) {}"); | ||
510 | let hover = analysis.hover(position).unwrap().unwrap(); | ||
511 | assert_eq!(trim_markup_opt(hover.info.first()), Some("i32")); | ||
512 | } | ||
513 | |||
514 | #[test] | ||
508 | fn test_type_of_for_function() { | 515 | fn test_type_of_for_function() { |
509 | let (analysis, range) = single_file_with_range( | 516 | let (analysis, range) = single_file_with_range( |
510 | " | 517 | " |