Skip to content

Commit 9437102

Browse files
PlotlyTestCase: support Any matchers in verifyEqual, not just struct comparisons
1 parent 3beee01 commit 9437102

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plotly/testing/PlotlyTestCase.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ function verifyEqual(testCase, actual, expected, varargin)
6262
testCase.compareHelper(actual, expected, '', varargin);
6363
return;
6464
end
65+
if isa(actual, 'PlotlyTestCaseAny') || isa(expected, 'PlotlyTestCaseAny')
66+
testCase.compareHelper(actual, expected, '', varargin);
67+
return;
68+
end
6569
ok = testCase.isEqualCheck(actual, expected, absTol);
6670
if ok
6771
testCase.recordPass();

0 commit comments

Comments
 (0)