Skip to content

Commit 1f425d3

Browse files
committed
Update output parentheses in tests
1 parent 6b99bfd commit 1f425d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/StdTest.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ end
343343
@test to_std_string(gradient(x' * sin(y) * a, x)) == "asin(y)"
344344
@test to_std_string(gradient(y' * sin(x) * a, x)) == "a(cos(x) ⊙ y)"
345345
@test to_std_string(gradient(sum(x), x)) == "vec(1)"
346-
@test_broken to_std_string(gradient(2 * sum(x), x)) == "2(vec(1))"
347-
@test_broken to_std_string(gradient(sum(2 * x), x)) == "2(vec(1))"
346+
@test to_std_string(gradient(2 * sum(x), x)) == "2vec(1)"
347+
@test to_std_string(gradient(sum(2 * x), x)) == "2vec(1)"
348348
@test to_std_string(gradient(sum(x .^ 2), x)) == "2x"
349349
@test to_std_string(gradient(sum(x .^ 3), x)) == "3x²"
350350
@test to_std_string(gradient(sum((x + y) .^ 2), x)) == "2(x + y)"
351-
@test_broken to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2(x ⊙ y ⊙ y)"
351+
@test to_std_string(gradient(sum((x .* y) .^ 2), x)) == "2x ⊙ y ⊙ y"
352352
@test to_std_string(gradient(sum((A * x - y) .^ 2), x)) == "2Aᵀ(Ax - y)"
353353
@test to_std_string(gradient((x' * A * x) .^ (-2), x)) == "(-2)(xᵀAᵀx)⁻³(Aᵀx + Ax)"
354354
@test to_std_string(gradient(((A .* B) * C * x)' * x, x)) == "(A ⊙ B)Cx + Cᵀ(Aᵀ ⊙ Bᵀ)x"

0 commit comments

Comments
 (0)