Skip to content

Commit da56240

Browse files
committed
Finalize
1 parent c60b253 commit da56240

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/Tests/UnitTests/Convenience/LatexTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ void TestSimplify(string expected, Entity actual) =>
6161
[Fact] public void SubscriptDuoPlus() => TestSimplify(@"6+\Delta_{\mathrm{a2}}", "Delta_a2+6");
6262
[Fact] public void Square() => Test(@"{x}^{2}", MathS.Sqr(x));
6363
[Fact] public void TwoXSquare() => Test(@"2 {x}^{2}", 2 * MathS.Sqr(x));
64+
[Fact] public void MTwoXSquare() => Test(@"-2 \cdot {x}^{2}", -2 * MathS.Sqr(x));
65+
[Fact] public void MTwoPTwoIXSquare() => Test(@"\left(-2 - \mathrm{i}\right) \cdot {x}^{2}", Complex.Create(-2, -1) * MathS.Sqr(x));
66+
[Fact] public void XTwo() => Test(@"x \cdot 2", x * 2);
67+
[Fact] public void XMTwo() => Test(@"x \left(-2\right)", x * -2);
68+
[Fact] public void XSquareTwo() => Test(@"{x}^{2} \cdot 2", MathS.Sqr(x) * 2);
69+
[Fact] public void XSquareMTwo() => Test(@"{x}^{2} \left(-2\right)", MathS.Sqr(x) * -2);
6470
[Fact] public void TwoAXSquare() => Test(@"2 a {x}^{2}", 2 * (Entity)"a" * MathS.Sqr(x));
6571
[Fact] public void TwoXSquareA() => Test(@"2 {x}^{2} \cdot a", 2 * MathS.Sqr(x) * "a");
6672
[Fact] public void TwoSinXXSquare() => Test(@"2 \sin\left(x\right) {x}^{2}", 2 * MathS.Sin(x) * MathS.Sqr(x));

0 commit comments

Comments
 (0)