emkornfield commented on a change in pull request #11029:
URL: https://github.com/apache/arrow/pull/11029#discussion_r698962424
##########
File path:
java/vector/src/test/java/org/apache/arrow/vector/TestValueVector.java
##########
@@ -2791,6 +2791,38 @@ public void testToString() {
}
}
+ @Test
+ public void testUInt1VectorToString() {
+ try (final UInt1Vector uInt1Vector = new UInt1Vector("uInt1Vector",
allocator)) {
+ setVector(uInt1Vector, (byte) 0xff);
+ assertEquals("[255]", uInt1Vector.toString());
+ }
+ }
+
+ @Test
+ public void testUInt2VectorToString() {
+ try (final UInt2Vector uInt2Vector = new UInt2Vector("uInt2Vector",
allocator)) {
+ setVector(uInt2Vector, (char) 0xffff);
+ assertEquals("[" + new Character((char) 0xffff) + "]",
uInt2Vector.toString());
Review comment:
lets use the exact string expected please.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]