use of org.eclipse.collections.api.tuple.primitive.LongLongPair in project mapdb by jankotek.
the class AbstractLongLongMapKeyValuesViewTestCase method getFirst.
@Test
public void getFirst() {
LongLongPair first = this.newWith(1L, 2L, 2L, 3L, 3L, 4L).getFirst();
Assert.assertTrue(PrimitiveTuples.pair(1L, 2L).equals(first) || PrimitiveTuples.pair(2L, 3L).equals(first) || PrimitiveTuples.pair(3L, 4L).equals(first));
Assert.assertEquals(PrimitiveTuples.pair(1L, 2L), this.newWith(1L, 2L).getFirst());
}
use of org.eclipse.collections.api.tuple.primitive.LongLongPair in project mapdb by jankotek.
the class AbstractLongLongMapKeyValuesViewTestCase method getLast.
@Test
public void getLast() {
LongLongPair last = this.newWith(1L, 2L, 2L, 3L, 3L, 4L).getLast();
Assert.assertTrue(PrimitiveTuples.pair(1L, 2L).equals(last) || PrimitiveTuples.pair(2L, 3L).equals(last) || PrimitiveTuples.pair(3L, 4L).equals(last));
Assert.assertEquals(PrimitiveTuples.pair(1L, 2L), this.newWith(1L, 2L).getLast());
}
Aggregations