Invenietis/ck-core — pull request #4 by aztheroth (2013-02-07 15:31:06+00:00)
Title: Fix sortedarraylist

# SortedArrayList #

## Method : CheckPosition ##

Lines : 350 & 368

Does not pass the tests when count's SortedArrayList is 2

for the case "ZB" when check the position of "Z"

if( lenAfter > 1 ) other = Util.BinarySearch( _tab, other, lenAfter, _tab[index], Comparator );

lenAfter = 1 as BynarySearch isn't execute

so CheckPosition return a negative result.

for the case "BA" when check the position of "A"

if( other > 0 ) other = Util.BinarySearch( _tab, 0, other, _tab[index], Comparator );

other = 0 as BynarySearch isn't execute

so CheckPosition return a negative result.