Search in sources :

Example 1 with LongLongPair

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());
}
Also used : LongLongPair(org.eclipse.collections.api.tuple.primitive.LongLongPair) Test(org.junit.Test)

Example 2 with LongLongPair

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());
}
Also used : LongLongPair(org.eclipse.collections.api.tuple.primitive.LongLongPair) Test(org.junit.Test)

Aggregations

LongLongPair (org.eclipse.collections.api.tuple.primitive.LongLongPair)2 Test (org.junit.Test)2