korlov42 commented on code in PR #2728:
URL: https://github.com/apache/ignite-3/pull/2728#discussion_r1371185853


##########
modules/schema/src/test/java/org/apache/ignite/internal/schema/BinaryTuplePrefixTest.java:
##########
@@ -76,6 +78,81 @@ public void testInternalBufferReallocation() {
         assertThat(prefix.intValue(0), is(Integer.MAX_VALUE));
     }
 
+    @Test
+    public void testCreatePrefixFromBinaryTupleWhichSizeIsLesserThanRequired() 
{
+        int sourceTupleSize = 1;
+
+        ByteBuffer buffer = new BinaryTupleBuilder(sourceTupleSize)
+                .appendInt(10)
+                .build();
+
+        BinaryTuplePrefix prefix = BinaryTuplePrefix.fromBinaryTuple(4, new 
BinaryTuple(sourceTupleSize, buffer));
+
+        assertThat(prefix.elementCount(), equalTo(sourceTupleSize));
+        assertThat(prefix.intValue(0), equalTo(10));
+        assertThat(prefix.hasNullValue(1), equalTo(true));
+        assertThat(prefix.hasNullValue(2), equalTo(true));
+        assertThat(prefix.hasNullValue(3), equalTo(true));
+    }
+
+    @Test
+    public void testCreatePrefixFromBinaryTupleWhichSizeIsEqualsToRequired() {

Review Comment:
   fixed, thanks!



##########
modules/schema/src/test/java/org/apache/ignite/internal/schema/BinaryTuplePrefixTest.java:
##########
@@ -76,6 +78,81 @@ public void testInternalBufferReallocation() {
         assertThat(prefix.intValue(0), is(Integer.MAX_VALUE));
     }
 
+    @Test
+    public void testCreatePrefixFromBinaryTupleWhichSizeIsLesserThanRequired() 
{

Review Comment:
   fixed, thanks!



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