fix out of range access in test on platforms which are actually shrinking the buffer

add shortcut to binary search when array size is one

(0) -1000 -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial