use of org.neo4j.collection.primitive.PrimitiveLongSet in project neo4j by neo4j.
the class JumpingSequencePutTest method shouldHandlePathologicalSequenceCase.
@Test
public void shouldHandlePathologicalSequenceCase() throws Exception {
// Given
PrimitiveLongSet set = Primitive.longSet();
Sequence seqGen = new Sequence();
// When
for (int i = 0; i < 10000; i++) {
set.add(seqGen.next());
}
// Then it should not have run out of RAM
}
Aggregations