diff options
Diffstat (limited to 'crates/test_utils')
-rw-r--r-- | crates/test_utils/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index 894a22769..1ae800d7c 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs | |||
@@ -98,6 +98,7 @@ pub fn extract_ranges(mut text: &str, tag: &str) -> (Vec<TextRange>, String) { | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | assert!(stack.is_empty(), "unmatched <{}>", tag); | 100 | assert!(stack.is_empty(), "unmatched <{}>", tag); |
101 | ranges.sort_by_key(|r| (r.start(), r.end())); | ||
101 | (ranges, res) | 102 | (ranges, res) |
102 | } | 103 | } |
103 | 104 | ||