Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Oct 10, 2023
1 parent 6ebc4cf commit 80e7cd8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions matlab/test/arrow/buffer/tBuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function fromMATLABDoubleVector(testCase)
% Create buffer from 1x3 double array
source = [3 9 27];
buffer = Buffer.fromMATLAB(source);
% Since the input vector is a 1x3 double (i.e. 64-bit floating
% point value) array - each of the 3 elements takes up 8 bytes
% (3 elements * 8 bytes per element = 24 bytes).
testCase.verifyEqual(buffer.NumBytes, int64(24));
values = toMATLAB(buffer);
expected = typecast(source', "uint8");
Expand Down Expand Up @@ -186,9 +189,9 @@ function IsEqualTrue(testCase)
end

function IsEqualFalse(testCase)
% Verifies two buffers are considered equal if
% 1. They have the same size (NumBytes)
% 2. They contain the same bytes
% Verifies two buffers are not considered equal if
% 1. They do not have the same size (NumBytes) OR
% 2. They do not contain the same bytes

import arrow.buffer.Buffer

Expand Down

0 comments on commit 80e7cd8

Please sign in to comment.