aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor/src/folding_ranges.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_editor/src/folding_ranges.rs')
-rw-r--r--crates/ra_editor/src/folding_ranges.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/ra_editor/src/folding_ranges.rs b/crates/ra_editor/src/folding_ranges.rs
index 8b79ea874..0803c8891 100644
--- a/crates/ra_editor/src/folding_ranges.rs
+++ b/crates/ra_editor/src/folding_ranges.rs
@@ -174,8 +174,16 @@ mod tests {
174 let file = File::parse(&text); 174 let file = File::parse(&text);
175 let folds = folding_ranges(&file); 175 let folds = folding_ranges(&file);
176 176
177 assert_eq!(folds.len(), ranges.len(), "The amount of folds is different than the expected amount"); 177 assert_eq!(
178 assert_eq!(folds.len(), fold_kinds.len(), "The amount of fold kinds is different than the expected amount"); 178 folds.len(),
179 ranges.len(),
180 "The amount of folds is different than the expected amount"
181 );
182 assert_eq!(
183 folds.len(),
184 fold_kinds.len(),
185 "The amount of fold kinds is different than the expected amount"
186 );
179 for ((fold, range), fold_kind) in folds 187 for ((fold, range), fold_kind) in folds
180 .into_iter() 188 .into_iter()
181 .zip(ranges.into_iter()) 189 .zip(ranges.into_iter())