Skip to content

Commit 7cfe752

Browse files
committed
Fix variable name typos in tests
1 parent 5928a12 commit 7cfe752

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/JuliaTest.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ using LinearAlgebra: diagm, I
5555
end
5656

5757
@testset "jacobian of sin(A * x + y)" begin
58-
jgrad = eval(to_std(jacobian(sin(A * x + y), x); format = dc.Julia()))
58+
jjac = eval(to_std(jacobian(sin(A * x + y), x); format = dc.Julia()))
5959

60-
@test jgrad(Â, x̂, ŷ) ForwardDiff.jacobian(x -> sin.(Â * x + ŷ), x̂)
60+
@test jjac(Â, x̂, ŷ) ForwardDiff.jacobian(x -> sin.(Â * x + ŷ), x̂)
6161
end
6262

6363
@testset "jacobian of (A .* B) * C * x)' * x * x" begin
64-
jgrad = eval(to_std(jacobian(((A .* B) * C * x)' * x * x, x); format = dc.Julia()))
64+
jjac = eval(to_std(jacobian(((A .* B) * C * x)' * x * x, x); format = dc.Julia()))
6565

66-
@test jgrad(x̂, Ĉ, Â, B̂)
66+
@test jjac(x̂, Ĉ, Â, B̂)
6767
ForwardDiff.jacobian(x -> ((Â .* B̂) ** x)' * x * x, x̂)
6868
end
6969
end

0 commit comments

Comments
 (0)