Skip to content

Commit

Permalink
Updated nfinst tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Nov 8, 2017
1 parent b46188a commit b031754
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/Makefile
Expand Up @@ -141,7 +141,6 @@ eq1.mo \
eq2.mo \
eq3.mo \
eq4.mo \
eq6.mo \
eq7.mo \
eq8.mo \
eq10.mo \
Expand Down Expand Up @@ -420,6 +419,7 @@ conngraph1.mo \
conngraph2.mo \
enum6.mo \
eq5.mo \
eq6.mo \
expconn1.mo \
expconn2.mo \
expconn3.mo \
Expand Down
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/PackageConstant1.mo
Expand Up @@ -14,6 +14,7 @@ end PackageConstant1;

// Result:
// class PackageConstant1
// constant Real P.x = 1.0;
// Real y = P.x;
// end PackageConstant1;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/const10.mo
Expand Up @@ -19,6 +19,7 @@ end C;

// Result:
// class C
// constant Integer A.i = 3;
// constant Integer b.j = A.i;
// Real b.x = /*Real*/(b.j);
// end C;
Expand Down
3 changes: 3 additions & 0 deletions flattening/modelica/scodeinst/const11.mo
Expand Up @@ -35,6 +35,9 @@ end M;

// Result:
// class M
// constant Integer P.A.j = 2;
// constant Integer P.A.B.i = P.A.j;
// constant Integer B.i = P.A.j;
// Integer x = P.A.B.i;
// constant Integer a.j = 3;
// Integer y = a.j;
Expand Down
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/const12.mo
Expand Up @@ -20,6 +20,7 @@ end B;

// Result:
// class B
// constant Integer A.m.i = {1, 2, 3};
// constant Integer j = A.m[1].i[2];
// Real x = /*Real*/(j);
// end B;
Expand Down
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/const14.mo
Expand Up @@ -28,6 +28,8 @@ end M;

// Result:
// class M
// constant Integer B.A.B.j = 2;
// constant Integer A.B.A.B.i = B.A.B.j;
// Integer x = A.B.A.B.i;
// end M;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/const15.mo
Expand Up @@ -18,6 +18,7 @@ end C;

// Result:
// class C
// constant Integer B.i = 4;
// Real x = /*Real*/(B.i);
// end C;
// endResult
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/const16.mo
Expand Up @@ -24,6 +24,8 @@ end M;

// Result:
// class M
// constant Integer P.P.j = 2;
// constant Integer P.P.P.i = P.P.j;
// Real x = /*Real*/(P.P.P.i);
// end M;
// endResult
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/const17.mo
Expand Up @@ -23,6 +23,8 @@ end M;

// Result:
// class M
// constant Integer A.B.i = A.B.A.B.c;
// constant Integer A.B.A.B.c = 2;
// Real x = /*Real*/(A.B.i);
// end M;
// endResult
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/eq4.mo
Expand Up @@ -25,6 +25,7 @@ end B;

// Result:
// class B
// constant Integer P.n = 3;
// Real a1[1].x;
// parameter Real a1[1].y = 1.0;
// Real a1[2].x;
Expand Down
7 changes: 4 additions & 3 deletions flattening/modelica/scodeinst/eq6.mo
Expand Up @@ -20,12 +20,13 @@ end B;

// Result:
// class B
// constant Integer P.i = 2;
// Real a[1].x;
// Real a[2].x;
// Real a[3].x;
// equation
// a[1].x = /*Real*/(P[1].i);
// a[2].x = /*Real*/(P[2].i);
// a[3].x = /*Real*/(P[3].i);
// a[1].x = /*Real*/(P.i);
// a[2].x = /*Real*/(P.i);
// a[3].x = /*Real*/(P.i);
// end B;
// endResult
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/ih2.mo
Expand Up @@ -25,6 +25,8 @@ end A;

// Result:
// class A
// constant Integer P2.i = 3;
// constant Integer P1.i = 2;
// Integer i1 = P1.i;
// Integer i2 = P2.i;
// end A;
Expand Down
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/ih3.mo
Expand Up @@ -25,6 +25,8 @@ end A;

// Result:
// class A
// constant Integer P.P2.i = 3;
// constant Integer P.P1.i = 2;
// Integer i1 = P.P1.i;
// Integer i2 = P.P2.i;
// end A;
Expand Down
1 change: 1 addition & 0 deletions flattening/modelica/scodeinst/redeclare7.mo
Expand Up @@ -26,6 +26,7 @@ end D;

// Result:
// class D
// constant Real b.P.x = 2;
// Real b.z = b.P.x;
// end D;
// endResult

0 comments on commit b031754

Please sign in to comment.