diff options
author | Aleksey Kladov <[email protected]> | 2019-01-23 13:05:13 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-23 13:05:13 +0000 |
commit | 2dbf58c579d6fe6a8acefcd9ae17eef7e984bca1 (patch) | |
tree | eae324e5b6277358bf6d4c162cd387ac4a2a717f /crates/ra_ide_api/src/completion/complete_path.rs | |
parent | 86507c0626eb07485b21c61638673acbb3c2a9ad (diff) |
move completion item tests closer to the code
this is the reason why we need marks: the tests were spread across two
files, because I've forgotten that there were tests already
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 804954ee1..6bed299d2 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -121,30 +121,4 @@ mod tests { | |||
121 | ", | 121 | ", |
122 | ); | 122 | ); |
123 | } | 123 | } |
124 | |||
125 | #[test] | ||
126 | fn dont_render_function_parens_in_use_item() { | ||
127 | check_reference_completion( | ||
128 | "dont_render_function_parens_in_use_item", | ||
129 | " | ||
130 | //- /lib.rs | ||
131 | mod m { pub fn foo() {} } | ||
132 | use crate::m::f<|>; | ||
133 | ", | ||
134 | ) | ||
135 | } | ||
136 | |||
137 | #[test] | ||
138 | fn dont_render_function_parens_if_already_call() { | ||
139 | check_reference_completion( | ||
140 | "dont_render_function_parens_if_already_call", | ||
141 | " | ||
142 | //- /lib.rs | ||
143 | fn frobnicate() {} | ||
144 | fn main() { | ||
145 | frob<|>(); | ||
146 | } | ||
147 | ", | ||
148 | ) | ||
149 | } | ||
150 | } | 124 | } |