Skip to content

Commit

Permalink
[NF] Add Complex subtraction test.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 29, 2019
1 parent d97b893 commit a3987d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flattening/modelica/scodeinst/OperatorOverloadComplex.mo
Expand Up @@ -190,6 +190,7 @@ equation

ca1 = -ca2;
c1 = ca2 * ca3;
c1 = 1 - c2;
end OperatorOverloadComplex;

// Result:
Expand Down Expand Up @@ -373,5 +374,6 @@ end OperatorOverloadComplex;
// c8 = Complex.'0'();
// ca1 = Complex.'-'.negateArr(ca2);
// c1 = Complex.'*'.scalarProduct(ca2, ca3);
// c1 = Complex.'-'.subtract(Complex.'constructor'.fromReal(1.0, 0.0), c2);
// end OperatorOverloadComplex;
// endResult

0 comments on commit a3987d2

Please sign in to comment.