diff options
Diffstat (limited to 'crates/ra_ide/src/hover.rs')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 0bbaa0855..6d4416c0b 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -751,4 +751,21 @@ fn func(foo: i32) { if true { <|>foo; }; } | |||
751 | 751 | ||
752 | assert_eq!(hover_on, "bar") | 752 | assert_eq!(hover_on, "bar") |
753 | } | 753 | } |
754 | |||
755 | #[test] | ||
756 | fn test_hover_non_ascii_space_doc() { | ||
757 | check_hover_result( | ||
758 | " | ||
759 | //- /lib.rs | ||
760 | /// <- `\u{3000}` here | ||
761 | fn foo() { | ||
762 | } | ||
763 | |||
764 | fn bar() { | ||
765 | fo<|>o(); | ||
766 | } | ||
767 | ", | ||
768 | &["fn foo()\n```\n\n<- `\u{3000}` here"], | ||
769 | ); | ||
770 | } | ||
754 | } | 771 | } |