Skip to content

Commit 82c8752

Browse files
committed
Adding additional optional arguments to mock
1 parent 1e9c3b1 commit 82c8752

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

SoftwareTests/PreFiles/PreForwardKinematics.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
if releaseInfo.Release == "R2025b"
88
open_system = @(str)MyOpen(str);
9-
sim = @(str)MySim(str);
9+
sim = @(str,str1,num)MySim(str,str2,num);
1010
end
1111

1212
function MyOpen(str)
1313
assert(exist(str,"file"))
1414
disp("Opening the system " + str)
1515
end
1616

17-
function MySim(str)
17+
function MySim(str,str2,num)
1818
disp("Simulating the system " + str);
1919
end
2020

SoftwareTests/PreFiles/PreForwardKinematicsSoln.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
% ---- Known Issues -----
33
KnownIssuesID = "";
44
% ---- Pre-run commands -----
5-
6-
releaseInfo = matlabRelease;
5+
releaseInfo = matlabRelease;
76

87
if releaseInfo.Release == "R2025b"
98
open_system = @(str)MyOpen(str);
10-
sim = @(str)MySim(str);
9+
sim = @(str,str1,num)MySim(str,str2,num);
1110
end
1211

1312
function MyOpen(str)
1413
assert(exist(str,"file"))
1514
disp("Opening the system " + str)
1615
end
1716

18-
function MySim(str)
17+
function MySim(str,str2,num)
1918
disp("Simulating the system " + str);
20-
end
19+
end

0 commit comments

Comments
 (0)