File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Versioning](http://semver.org/spec/v2.0.0.html).
18
18
19
19
- Fixed a quadratic time worst case scenario in the quicksort implementation for
20
20
` Vector ` . (#101 )
21
- - Fixed an edge case bug when splitting and joining large ` Vector ` s. (#107 )
21
+ - Fixed an edge case bug when splitting and joining large ` Vector ` s. (#105 , # 107 )
22
22
23
23
## [ 13.0.0] - 2019-05-18
24
24
Original file line number Diff line number Diff line change @@ -2635,6 +2635,19 @@ mod test {
2635
2635
x. insert ( 514 , 0 ) ;
2636
2636
}
2637
2637
2638
+ #[ test]
2639
+ fn issue_105 ( ) {
2640
+ let mut v = Vector :: new ( ) ;
2641
+
2642
+ for i in 0 ..270_000 {
2643
+ v. push_front ( i) ;
2644
+ }
2645
+
2646
+ while !v. is_empty ( ) {
2647
+ v = v. take ( v. len ( ) - 1 ) ;
2648
+ }
2649
+ }
2650
+
2638
2651
#[ test]
2639
2652
fn issue_107_split_off_causes_overflow ( ) {
2640
2653
let mut vec = Vector :: from_iter ( 0 ..4289 ) ;
You can’t perform that action at this time.
0 commit comments