Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 3, 2022
1 parent 9ca399f commit 8f90a8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/sd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function _real(s::String)
end
return string("real(", s, ")")
end

function _imag(s::String)
if isempty(s)
return s
Expand Down
8 changes: 4 additions & 4 deletions test/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,10 @@ end
function test_Hermitian_PSD_anon(::Any, ::Any)
model = Model()
x = @variable(model, [1:2, 1:2] in HermitianPSDCone())
@test sprint(show, x[1, 1]) == "_[1]"
@test sprint(show, x[1, 2]) == "_[2] + (0.0 + 1.0im) _[4]"
@test sprint(show, x[2, 1]) == "_[2] + (-0.0 - 1.0im) _[4]"
@test sprint(show, x[2, 2]) == "_[3]"
@test sprint(show, x[1, 1]) == "_[1]"
@test sprint(show, x[1, 2]) == "_[2] + (0.0 + 1.0im) _[4]"
@test sprint(show, x[2, 1]) == "_[2] + (-0.0 - 1.0im) _[4]"
@test sprint(show, x[2, 2]) == "_[3]"
return
end

Expand Down

0 comments on commit 8f90a8c

Please sign in to comment.