From eb950b32261c459de38366381512cad098f9b9e9 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Mon, 14 Jun 2021 14:04:55 -0400 Subject: [PATCH] Work around test edge case behavior Vector data have no guarantees as to their stored dimensionality. --- +tests/+unit/multipleShapesTest.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+tests/+unit/multipleShapesTest.m b/+tests/+unit/multipleShapesTest.m index 6ee4d958..f840b137 100644 --- a/+tests/+unit/multipleShapesTest.m +++ b/+tests/+unit/multipleShapesTest.m @@ -23,10 +23,10 @@ function testMultipleShapesDataset(testCase) function testNullShapeDataset(testCase) nsd = types.mss.NullShapeDataset; -randiMax = intmax('int8'); +randiMax = intmax('int8') - 1; for i=1:100 %test validation - nsd.data = rand(randi(randiMax), 3); + nsd.data = rand(randi(randiMax) + 1, 3); end roundabout(testCase, nsd); end