Skip to content

Commit eb950b3

Browse files
author
Lawrence
committed
Work around test edge case behavior
Vector data have no guarantees as to their stored dimensionality.
1 parent dbedf05 commit eb950b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+tests/+unit/multipleShapesTest.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function testMultipleShapesDataset(testCase)
2323

2424
function testNullShapeDataset(testCase)
2525
nsd = types.mss.NullShapeDataset;
26-
randiMax = intmax('int8');
26+
randiMax = intmax('int8') - 1;
2727
for i=1:100
2828
%test validation
29-
nsd.data = rand(randi(randiMax), 3);
29+
nsd.data = rand(randi(randiMax) + 1, 3);
3030
end
3131
roundabout(testCase, nsd);
3232
end

0 commit comments

Comments
 (0)