aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r--crates/ra_ide/src/completion/complete_keyword.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_ide/src/completion/complete_keyword.rs b/crates/ra_ide/src/completion/complete_keyword.rs
index feaa438af..8ea51c7aa 100644
--- a/crates/ra_ide/src/completion/complete_keyword.rs
+++ b/crates/ra_ide/src/completion/complete_keyword.rs
@@ -130,7 +130,7 @@ mod tests {
130 let mut returned_keywords = Vec::<(String, String)>::new(); 130 let mut returned_keywords = Vec::<(String, String)>::new();
131 131
132 for item in completion_items { 132 for item in completion_items {
133 debug_assert!(item.text_edit().len() == 1); 133 assert!(item.text_edit().len() == 1);
134 assert!(item.kind() == Some(CompletionItemKind::Keyword)); 134 assert!(item.kind() == Some(CompletionItemKind::Keyword));
135 let atom = item.text_edit().iter().next().unwrap().clone(); 135 let atom = item.text_edit().iter().next().unwrap().clone();
136 assert!(atom.delete.start() == position.offset); 136 assert!(atom.delete.start() == position.offset);
@@ -165,12 +165,6 @@ mod tests {
165 ] 165 ]
166 "### 166 "###
167 ); 167 );
168 // assert_completion_keyword(
169 // r"
170 // use <|>
171 // ",
172 // &[("crate", "crate::"), ("self", "self"), ("super", "super::")],
173 // );
174 } 168 }
175 169
176 #[test] 170 #[test]