Skip to content

Commit 97f4ca0

Browse files
Update TractorEnergyComputationScriptTest.m
Test to check bus element color.
1 parent 07c90da commit 97f4ca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Test/Script/TractorEnergyComputationScriptTest.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ function testBusElementLabelColor(testCase)
6363

6464
% Evaluate function
6565
open_system("TractorEnergyComputation/Tractor/Tractor Body and Powertrain/Hydrostatic CVT")
66-
busElementLabelColor('black', 1);
66+
busElementLabelColor('[0.1, 0.2, 0.3]', 1);
6767

6868
% Verify bus element color is 'black'
69-
testCase.verifyEqual(get_param(busElement7, 'ForegroundColor'), 'black',...
69+
testCase.verifyEqual(get_param(busElement7, 'ForegroundColor'), '[0.1, 0.2, 0.3]',...
7070
'The ''ForegroundColor'' for busElement7 should be ''black''.');
7171
end
7272

@@ -106,4 +106,4 @@ function runImplementBlockHelp()
106106

107107
end
108108

109-
end
109+
end

0 commit comments

Comments
 (0)