liyafan82 commented on a change in pull request #11029:
URL: https://github.com/apache/arrow/pull/11029#discussion_r699190994



##########
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("[\uffff]", uInt2Vector.toString());

Review comment:
       I see your point. Please check if it looks right now?




-- 
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]


Reply via email to