Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 30e9e67

Browse files
adeas31OpenModelica-Hudson
authored andcommitted
Updated the moveClass API test
Check for all the loaded classes before and after the `moveClass` API call. Belonging to [master]: - OpenModelica/OMCompiler#2996 - #1146
1 parent 13c7f7a commit 30e9e67

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

openmodelica/interactive-API/MoveClass2.mos

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ loadString("
1414
end P1;
1515
");
1616
getErrorString();
17+
loadString("
18+
model M
19+
end M;
20+
");
1721

22+
getClassNames();
1823
getClassNames(P1.P2);
1924
moveClass(P1.P2.C2, -1);
2025
getErrorString();
26+
getClassNames();
2127
getClassNames(P1.P2);
2228

2329
// Result:
2430
// true
2531
// ""
32+
// true
33+
// {M,P1}
2634
// {C1,C2}
2735
// true
2836
// ""
37+
// {M,P1}
2938
// {C2,C1}
3039
// endResult

0 commit comments

Comments
 (0)