Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minimalSplitter when left and right are equal
Previously when creating minimal splitter from left and right that where equal the desired length of right to be copied to minimal splitter would be length of right +1. This could cause out of bounds exceptions and unsorted indexes. `minimalLengthFromRightNeededToDifferentiateFromLeft` now take right max length into consideration. Also add tests for indexing lots of equal values.
- Loading branch information
Showing
4 changed files
with
73 additions
and
6 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