]> git.lizzy.rs Git - rust.git/commitdiff
correct the test if IntervalSet
authorSparrowLii <liyuan179@huawei.com>
Wed, 8 Jun 2022 14:44:26 +0000 (22:44 +0800)
committerSparrowLii <liyuan179@huawei.com>
Wed, 8 Jun 2022 14:44:26 +0000 (22:44 +0800)
compiler/rustc_index/src/interval/tests.rs

index d90b449f3260919915f83dfcff69526bbc58d722..375af60f6620758f7d842362057358633a6196c0 100644 (file)
@@ -2,7 +2,7 @@
 
 #[test]
 fn insert_collapses() {
-    let mut set = IntervalSet::<u32>::new(3000);
+    let mut set = IntervalSet::<u32>::new(10000);
     set.insert_range(9831..=9837);
     set.insert_range(43..=9830);
     assert_eq!(set.iter_intervals().collect::<Vec<_>>(), [43..9838]);