public void testCanReachAllEntriesInLastTableRowRightTupleIndexHashTable() {
// Construct a table with one row, containing one list, containing three entries.
int numEntries = 3;
RightTupleList[] table = new RightTupleList[3];
RightTupleList rtList = new RightTupleList();
table[0] = rtList;
for ( int i = 0; i < numEntries; i++ ) {
RightTuple rightTuple = new RightTuple();
rightTuple.setMemory( rtList );
rtList.add( rightTuple );
}
rtList = new RightTupleList();
table[2] = rtList;
for ( int i = 0; i < numEntries; i++ ) {
RightTuple rightTuple = new RightTuple();
rightTuple.setMemory( rtList );
rtList.add( rightTuple );
}
rtList = new RightTupleList();
table[2].setNext( rtList );
for ( int i = 0; i < numEntries; i++ ) {
RightTuple rightTuple = new RightTuple();
rightTuple.setMemory( rtList );
rtList.add( rightTuple );
}
// test fast
RightTupleIndexHashTable.FullFastIterator iter = new RightTupleIndexHashTable.FullFastIterator( table );
List<RightTuple> list = new ArrayList<RightTuple>();