aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/keyword.rs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-17 12:13:12 +0100
committerLukas Wirth <[email protected]>2021-06-17 12:13:12 +0100
commite14f5cfff04942f45a4af3b45152df9672b3458a (patch)
tree0ed0353823e6194bc5f940d2033ab2c0788f19fd /crates/ide_completion/src/completions/keyword.rs
parentd6b8af44829521a9f925c4d87599efa3fef38edc (diff)
Move out and rewrite UseTree completion tests
Diffstat (limited to 'crates/ide_completion/src/completions/keyword.rs')
-rw-r--r--crates/ide_completion/src/completions/keyword.rs35
1 files changed, 0 insertions, 35 deletions
diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide_completion/src/completions/keyword.rs
index 73bbc4345..b6f06a44f 100644
--- a/crates/ide_completion/src/completions/keyword.rs
+++ b/crates/ide_completion/src/completions/keyword.rs
@@ -200,41 +200,6 @@ mod tests {
200 } 200 }
201 201
202 #[test] 202 #[test]
203 fn test_keywords_in_use_stmt() {
204 check(
205 r"use $0",
206 expect![[r#"
207 kw crate::
208 kw self
209 kw super::
210 "#]],
211 );
212
213 // FIXME: `self` shouldn't be shown here and the check below
214 check(
215 r"use a::$0",
216 expect![[r#"
217 kw self
218 "#]],
219 );
220
221 check(
222 r"use super::$0",
223 expect![[r#"
224 kw self
225 kw super::
226 "#]],
227 );
228
229 check(
230 r"use a::{b, $0}",
231 expect![[r#"
232 kw self
233 "#]],
234 );
235 }
236
237 #[test]
238 fn test_keywords_in_function() { 203 fn test_keywords_in_function() {
239 check( 204 check(
240 r"fn quux() { $0 }", 205 r"fn quux() { $0 }",