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 903e80d commit bd42628Copy full SHA for bd42628
test/deparse.jl
@@ -1,2 +1,8 @@
1
@assert isequal(deparse(:(cos(x) + sin(x))), "cos(x) + sin(x)")
2
@assert isequal(deparse(:(cos(x) + sin(x) + exp(-x))), "cos(x) + sin(x) + exp(-x)")
3
+@assert isequal(deparse(parse("x+y*z")), "x + y * z")
4
+@assert isequal(deparse(parse("(x+y)*z")), "(x + y) * z")
5
+@assert isequal(deparse(parse("1/(x/y)")), "1 / (x / y)")
6
+@assert isequal(deparse(parse("1/(x*y)")), "1 / (x * y)")
7
+@assert isequal(deparse(parse("z^(x+y)")), "z ^ (x + y)")
8
+@assert isequal(deparse(parse("z^(x*y)")), "z ^ (x * y)")
0 commit comments