HBASE-4310 Fix check for lower and upper bounds

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1164549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-09-02 14:31:29 +00:00
parent dc2bd8dce6
commit 58e75dd65c
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ public class TestSlabCache {
public void testStatsArithmetic(){
SlabStats test = cache.requestStats;
for(int i = 0; i < test.NUMDIVISIONS; i++){
assert(test.getUpperBound(i) < test.getLowerBound(i + 1));
assertTrue("Upper for index " + i + " is " + test.getUpperBound(i) +
" lower " + test.getLowerBound(i + 1),
test.getUpperBound(i) <= test.getLowerBound(i + 1));
}
}
}