Skip to content

Commit 5382f72

Browse files
tmp3
1 parent 548da16 commit 5382f72

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎plotly/Test_plotlyfig.m‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3777,7 +3777,7 @@ function testContourfPlotData(tc)
37773777
"colorscale", PlotlyTestCase.Any(), ...
37783778
"line", struct( ...
37793779
"width", PlotlyTestCase.Any(), ...
3780-
"color", "rgb(0,0,0)", ...
3780+
"color", "rgb(217,217,217)", ...
37813781
"dash", PlotlyTestCase.Any(), ...
37823782
"smoothing", PlotlyTestCase.Any() ...
37833783
), ...
@@ -3788,6 +3788,7 @@ function testContourfPlotData(tc)
37883788
% Octave's contour handler emits a simpler line
37893789
% struct and no reversescale
37903790
expected.line = rmfield(expected.line, {'dash', 'smoothing'});
3791+
expected.line.color = "rgb(0,0,0)";
37913792
expected = rmfield(expected, 'reversescale');
37923793
end
37933794
tc.verifyEqualStructs(p.data{1}, expected, 'AbsTol', 1e-15);

‎plotly/testing/PlotlyTestCase.m‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ function verifyLessThan(testCase, value, ceiling, varargin)
176176
%-assertion's location in the test file-%
177177
info = '';
178178
st = dbstack;
179-
thisFile = [mfilename('fullpath') '.m'];
179+
thisFile = lower([mfilename('fullpath') '.m']);
180180
for i = 2:numel(st)
181-
if ~isempty(st(i).file) && ~strcmp(st(i).file, thisFile)
181+
if ~isempty(st(i).file) && ~strcmp(lower(st(i).file), thisFile)
182182
info = sprintf('\n at %s:%d', st(i).file, st(i).line);
183183
line = PlotlyTestCase.readSourceLine(st(i).file, st(i).line);
184184
if ~isempty(line)

0 commit comments

Comments
 (0)