diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_postfix.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_postfix.rs | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_postfix.rs b/crates/ra_ide_api/src/completion/complete_postfix.rs index af25452b8..e3a739d6d 100644 --- a/crates/ra_ide_api/src/completion/complete_postfix.rs +++ b/crates/ra_ide_api/src/completion/complete_postfix.rs | |||
@@ -56,9 +56,9 @@ mod tests { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | #[test] | 58 | #[test] |
59 | fn test_filter_postfix_completion1() { | 59 | fn postfix_completion_works_for_trivial_path_expression() { |
60 | check_snippet_completion( | 60 | check_snippet_completion( |
61 | "filter_postfix_completion1", | 61 | "postfix_completion_works_for_trivial_path_expression", |
62 | r#" | 62 | r#" |
63 | fn main() { | 63 | fn main() { |
64 | let bar = "a"; | 64 | let bar = "a"; |
@@ -67,43 +67,4 @@ mod tests { | |||
67 | "#, | 67 | "#, |
68 | ); | 68 | ); |
69 | } | 69 | } |
70 | |||
71 | #[test] | ||
72 | fn test_filter_postfix_completion2() { | ||
73 | check_snippet_completion( | ||
74 | "filter_postfix_completion2", | ||
75 | r#" | ||
76 | fn main() { | ||
77 | let bar = "a"; | ||
78 | bar.i<|> | ||
79 | } | ||
80 | "#, | ||
81 | ); | ||
82 | } | ||
83 | |||
84 | #[test] | ||
85 | fn test_filter_postfix_completion3() { | ||
86 | check_snippet_completion( | ||
87 | "filter_postfix_completion3", | ||
88 | r#" | ||
89 | fn main() { | ||
90 | let bar = "a"; | ||
91 | bar.if<|> | ||
92 | } | ||
93 | "#, | ||
94 | ); | ||
95 | } | ||
96 | |||
97 | #[test] | ||
98 | fn test_filter_postfix_completion4() { | ||
99 | check_snippet_completion( | ||
100 | "filter_postfix_completion4", | ||
101 | r#" | ||
102 | fn main() { | ||
103 | let bar = "a"; | ||
104 | bar.dbg<|> | ||
105 | } | ||
106 | "#, | ||
107 | ); | ||
108 | } | ||
109 | } | 70 | } |