-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: honour the windows that the ranges represent to avoid mismatc…
…hed DELETE/INSERT operations Previously, we would just focus on finding _any_ window boundary and then assume that was the boundary which matched the window for the purposes of DELETE/INSERT move operations. However, this wasn't always true, especially in the following case: ``` 0..9 [10..20] 21...29 [30...40] then move 30 to 10 0..9 [30,10...19] 20...28 [29,31...40] expect: - DELETE 30, INSERT 30 (val=29) - DELETE 20, INSERT 10 (val=30) but we would get: - DELETE 30, INSERT 20 (val=19) - DELETE 20, INSERT 10 (val=30) because the code assumed that there was a window range [20,30] which there wasn't. ```
- Loading branch information
Showing
4 changed files
with
164 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters