Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 9, 2024
1 parent c6b2614 commit 3146a33
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions java/c/src/test/java/org/apache/arrow/c/RoundtripTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -524,34 +524,38 @@ public void testVarCharVector() {
}
}

@Test
0@Test
public void testEmptyVarCharVector() {
try (final VarCharVector vector = new VarCharVector("v", allocator)) {
setVector(vector);
vector.allocateNewSafe();
vector.setValueCount(0);
assertTrue(roundtrip(vector, VarCharVector.class));
}
}

@Test
public void testEmptyLargeVarCharVector() {
try (final LargeVarCharVector vector = new LargeVarCharVector("v", allocator)) {
setVector(vector);
vector.allocateNewSafe();
vector.setValueCount(0);
assertTrue(roundtrip(vector, LargeVarCharVector.class));
}
}

@Test
public void testEmptyVarBinaryVector() {
try (final VarBinaryVector vector = new VarBinaryVector("v", allocator)) {
setVector(vector);
vector.allocateNewSafe();
vector.setValueCount(0);
assertTrue(roundtrip(vector, VarBinaryVector.class));
}
}

@Test
public void testEmptyLargeVarBinaryVector() {
try (final LargeVarBinaryVector vector = new LargeVarBinaryVector("v", allocator)) {
setVector(vector);
vector.allocateNewSafe();
vector.setValueCount(0);
assertTrue(roundtrip(vector, LargeVarBinaryVector.class));
}
}
Expand Down

0 comments on commit 3146a33

Please sign in to comment.