Skip to content

Commit

Permalink
fix: address reviews v3
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed Jan 22, 2024
1 parent 220c6d4 commit ee8c003
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,42 +221,43 @@ public void testSetLastSetUsage() throws Exception {
offset = (int) offsetBuffer.getLong(index * LargeListVector.OFFSET_WIDTH);
assertEquals(Integer.toString(0), Integer.toString(offset));

long actual = dataVector.getObject(offset);
assertEquals(10L, actual);
Long actual = dataVector.getObject(offset);
assertEquals(Long.valueOf(10), actual);
offset++;
actual = dataVector.getObject(offset);
assertEquals(11L, actual);
assertEquals(Long.valueOf(11), actual);
offset++;
actual = dataVector.getObject(offset);
assertEquals(12L, actual);
assertEquals(Long.valueOf(12), actual);

index++;
offset = (int) offsetBuffer.getLong(index * LargeListVector.OFFSET_WIDTH);
assertEquals(Integer.toString(3), Integer.toString(offset));

actual = dataVector.getObject(offset);
assertEquals(13L, actual);
assertEquals(Long.valueOf(13), actual);
offset++;
actual = dataVector.getObject(offset);
assertEquals(14L, actual);
assertEquals(Long.valueOf(14), actual);

index++;
offset = (int) offsetBuffer.getLong(index * LargeListVector.OFFSET_WIDTH);
assertEquals(Integer.toString(5), Integer.toString(offset));

actual = dataVector.getObject(offset);
assertEquals(15L, actual);
assertEquals(Long.valueOf(15), actual);
offset++;
actual = dataVector.getObject(offset);
assertEquals(16L, actual);
assertEquals(Long.valueOf(16), actual);
offset++;
actual = dataVector.getObject(offset);
assertEquals(17L, actual);
assertEquals(Long.valueOf(17), actual);

index++;
offset = (int) offsetBuffer.getLong(index * LargeListVector.OFFSET_WIDTH);
assertEquals(Integer.toString(8), Integer.toString(offset));
assertNull(dataVector.getObject(offset));
actual = dataVector.getObject(offset);
assertNull(actual);
}
}

Expand Down

0 comments on commit ee8c003

Please sign in to comment.