Skip to content

Commit

Permalink
[NF] Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Apr 3, 2018
1 parent 155e22a commit eb6a2d7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions flattening/modelica/scodeinst/IfEquation2.mo
Expand Up @@ -6,7 +6,7 @@

model IfEquation2
Real x;
parameter Boolean b;
Boolean b;
equation
if b then
x = 1.0;
Expand All @@ -18,7 +18,7 @@ end IfEquation2;
// Result:
// class IfEquation2
// Real x;
// parameter Boolean b;
// Boolean b;
// equation
// if b then
// x = 1.0;
Expand Down
4 changes: 2 additions & 2 deletions flattening/modelica/scodeinst/ceval2.mo
Expand Up @@ -5,13 +5,13 @@
model A
parameter Integer n = 1;
parameter Integer m = 2+n;
Real x[m] = {1.0, 1.0, 1.0}; //fill(1.0, m);
Real x[m] = fill(1.0, m);
end A;

// Result:
// class A
// parameter Integer n = 1;
// parameter Integer m = 2 + n;
// parameter Integer m = 2 + 1;
// Real x[1];
// Real x[2];
// Real x[3];
Expand Down
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/ceval5.mo
Expand Up @@ -10,7 +10,7 @@ end A;

// Result:
// Error processing file: ceval5.mo
// [flattening/modelica/scodeinst/ceval5.mo:7:3-7:26:writable] Error: Type mismatch in binding m = n, expected subtype of Integer, got type Real.
// [flattening/modelica/scodeinst/ceval5.mo:7:3-7:26:writable] Error: Type mismatch in binding m = 3.0, expected subtype of Integer, got type Real.
//
// # Error encountered! Exiting...
// # Please check the error message and the flags.
Expand Down
4 changes: 2 additions & 2 deletions flattening/modelica/scodeinst/ceval6.mo
Expand Up @@ -33,8 +33,8 @@ end A;
// parameter Boolean b8 = 1 >= 0;
// parameter Boolean b9 = 1 == 0;
// parameter Boolean b10 = 1 <> 0;
// parameter Boolean b = b1 or b2 and not b3 or b4 and b5 and not b6 or b7 and not b8 and not b9 and b10;
// parameter Integer n = if b then 2 else 3;
// parameter Boolean b = false or false and not true or true and false and not false or true and not true and not false and true;
// parameter Integer n = if false then 2 else 3;
// Real x[1];
// Real x[2];
// Real x[3];
Expand Down
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/const8.mo
Expand Up @@ -25,7 +25,7 @@ end M2;
// parameter Real A[2,1];
// parameter Real A[2,2];
// parameter Real A[2,3];
// parameter Integer j = 3;
// parameter Integer j = size(A, i);
// parameter Integer i = 2;
// end M2;
// endResult
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/dim18.mo
Expand Up @@ -13,7 +13,7 @@ end A;
// Result:
// class A
// parameter Integer m = 2;
// parameter Integer n = m;
// parameter Integer n = 2;
// Real x[1];
// Real x[2];
// end A;
Expand Down
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/dim19.mo
Expand Up @@ -16,7 +16,7 @@ end A;
// parameter Integer n[1] = 1;
// parameter Integer n[2] = 2;
// parameter Integer n[3] = 3;
// parameter Integer m = n[2];
// parameter Integer m = 2;
// Real x[1];
// Real x[2];
// end A;
Expand Down
2 changes: 1 addition & 1 deletion flattening/modelica/scodeinst/loop3.mo
Expand Up @@ -20,6 +20,6 @@ end A;
// parameter Real x[2,1];
// parameter Real x[2,2];
// parameter Real x[2,3];
// parameter Integer i = 3;
// parameter Integer i = size(x, n);
// end A;
// endResult

0 comments on commit eb6a2d7

Please sign in to comment.