We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb039e5 commit 98d0ad9Copy full SHA for 98d0ad9
test/runtests.jl
@@ -30,7 +30,11 @@ import MathLink: WExpr, WSymbol
30
@test W2Mstr(weval(W`a^2`)) == "(a^2)"
31
@test W2Mstr(weval(W`e+a^(b+c)`)) == "((a^(b + c)) + e)"
32
@test W2Mstr(weval(W`a + c + v + Sin[2 + x + Cos[q]]`)) == "(a + c + v + Sin[(2 + x + Cos[q])])"
33
+ set_GreedyEval(true)
34
@test W2Mstr(W"a"+W"c"+W"v"+W"Sin"(2 +W"x" + W"Cos"(W"q"))) == "(a + c + v + Sin[(2 + x + Cos[q])])"
35
+ set_GreedyEval(false)
36
+ @test W2Mstr(W"a"+W"c"+W"v"+W"Sin"(2 +W"x" + W"Cos"(W"q"))) == "(((a + c) + v) + Sin[((2 + x) + Cos[q])])"
37
+
38
@test W2Mstr(W`Sqrt[x+Sin[y]+z^(3/2)]`) == "Sqrt[(x + Sin[y] + (z^(3*(2^-1))))]"
39
40
end
0 commit comments