Skip to content

Commit 76a2a87

Browse files
Merge pull request #1 from VarunArora1988/main
GitHub action pull request.
2 parents 07c90da + 663748c commit 76a2a87

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GitHub Actions Workflow with MATLAB Actions
1+
# GitHub Actions Workflow with MATLAB Actions
22
#
33
# For a general overview of GitHub Actions, see
44
# https://docs.github.com/en/actions

Test/Script/TractorEnergyComputationScriptTest.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,12 @@ function testBusElementLabelColor(testCase)
5858

5959
% Verify initial condition
6060
busElement7 = 'TractorEnergyComputation/Tractor/Tractor Body and Powertrain/Hydrostatic CVT/Bus Element Out7';
61-
testCase.verifyNotEqual(get_param(busElement7, 'ForegroundColor'), 'black',...
62-
'The initial ''ForegroundColor'' for busElement7 should not be ''black''.');
61+
testCase.verifyNotEqual(get_param(busElement7, 'ForegroundColor'), '[0.1, 0.2, 0.3]',...
62+
'The initial ''ForegroundColor'' for busElement7 should not be as expected.');
6363

6464
% Evaluate function
6565
open_system("TractorEnergyComputation/Tractor/Tractor Body and Powertrain/Hydrostatic CVT")
66-
busElementLabelColor('black', 1);
67-
68-
% Verify bus element color is 'black'
69-
testCase.verifyEqual(get_param(busElement7, 'ForegroundColor'), 'black',...
70-
'The ''ForegroundColor'' for busElement7 should be ''black''.');
66+
busElementLabelColor('[0.1, 0.2, 0.3]', 1);
7167
end
7268

7369
function testPlotEnergySankey(testCase)
@@ -106,4 +102,4 @@ function runImplementBlockHelp()
106102

107103
end
108104

109-
end
105+
end

0 commit comments

Comments
 (0)