Skip to content

Commit a66ec2e

Browse files
committed
Added a tolerance to wt.test.SliderSpinner verification
1 parent 3ce6012 commit a66ec2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/+wt/+test/SliderSpinner.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function verifyControlValues(testCase,value)
3030
% Verifies the control fields have the specified value
3131

3232
drawnow
33-
testCase.verifyEqual(testCase.Widget.Spinner.Value, value);
33+
testCase.verifyEqual(testCase.Widget.Spinner.Value, value, 'AbsTol', 1e-5);
3434
testCase.verifyEqual(testCase.Widget.Slider.Value, value, 'AbsTol', 1e-5);
3535

3636
end %function
@@ -197,7 +197,7 @@ function testSlider(testCase)
197197
testCase.verifyControlValues(expValue);
198198
testCase.verifyEqual(testCase.Widget.Value, expValue);
199199

200-
% Drag the slider to a fraction (with rounding on)
200+
% Drag the slider to a fraction (with rounding turned on)
201201
newValue = 13.65;
202202
expValue = 14;
203203
testCase.drag(sliderControl,32,newValue);
@@ -207,7 +207,7 @@ function testSlider(testCase)
207207
% Configure the control
208208
testCase.verifySetProperty("RoundFractionalValues", "off");
209209

210-
% Drag the slider to a fraction (with rounding off)
210+
% Drag the slider to a fraction (with rounding turned off)
211211
newValue = 91.24;
212212
expValue = 91.24;
213213
testCase.drag(sliderControl,14,newValue);

0 commit comments

Comments
 (0)