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 Jun 25, 2018
1 parent d023d7a commit 20dc212
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flattening/modelica/scodeinst/OperatorOverloadArrayOp1.mo
Expand Up @@ -165,6 +165,12 @@ equation
end OperatorOverloadArrayOp1;

// Result:
// function Complex "Automatically generated record constructor for Complex"
// input Real re;
// input Real im;
// output Complex res;
// end Complex;
//
// function Complex.'+' "Add two complex numbers"
// input Complex c1 "Complex number 1";
// input Complex c2 "Complex number 2";
Expand Down
6 changes: 6 additions & 0 deletions flattening/modelica/scodeinst/OperatorOverloadComplex.mo
Expand Up @@ -193,6 +193,12 @@ equation
end OperatorOverloadComplex;

// Result:
// function Complex "Automatically generated record constructor for Complex"
// input Real re;
// input Real im;
// output Complex res;
// end Complex;
//
// function Complex.'*'.multiply "Multiply two complex numbers"
// input Complex c1 "Complex number 1";
// input Complex c2 "Complex number 2";
Expand Down
6 changes: 6 additions & 0 deletions flattening/modelica/scodeinst/OperatorOverloadConstructor1.mo
Expand Up @@ -25,6 +25,12 @@ end OperatorOverloadConstructor1;


// Result:
// function C "Automatically generated record constructor for C"
// input Real r1;
// input Real r2;
// output C res;
// end C;
//
// function C.'constructor'
// input Real r;
// output C o;
Expand Down
Expand Up @@ -29,6 +29,11 @@ end OperatorOverloadConstructorHideDefault;


// Result:
// function C "Automatically generated record constructor for C"
// input Real r;
// output C res;
// end C;
//
// function C.'constructor'.fromReal
// input Real r;
// output C o;
Expand Down
Expand Up @@ -27,6 +27,11 @@ end OperatorOverloadConstructorSimple;


// Result:
// function C "Automatically generated record constructor for C"
// input Real r;
// output C res;
// end C;
//
// function C.'constructor'.fromNone
// output C o;
// algorithm
Expand Down

0 comments on commit 20dc212

Please sign in to comment.