Skip to content

Commit a333bf2

Browse files
committed
Update output format in gradient test
1 parent 1da6ee0 commit a333bf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/StdTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ end
268268
@test to_std_string(gradient((x + y)' * x, x)) == "2x + y"
269269
@test to_std_string(gradient((x - y)' * x, x)) == "2x - y"
270270
@test to_std_string(gradient(sin(tr(x * x')), x)) == "2cos(xᵀx)x"
271-
@test to_std_string(gradient(cos(tr(x * x')), x)) == "2sin(xᵀx)(-1)x"
271+
@test to_std_string(gradient(cos(tr(x * x')), x)) == "(-2)sin(xᵀx)x"
272272
@test to_std_string(gradient(tr(A), x)) == "vec(0)"
273273
@test to_std_string(gradient(x' * B' * A * A * x, x)) == "AᵀAᵀBx + BᵀAAx"
274274
@test to_std_string(gradient((A' * B * x)' * A * x, x)) == "AᵀAᵀBx + BᵀAAx"

0 commit comments

Comments
 (0)