diff --git a/test/test_complex.jl b/test/test_complex.jl index 7fcab52dfe1..c1eb04b2e77 100644 --- a/test/test_complex.jl +++ b/test/test_complex.jl @@ -253,7 +253,7 @@ function test_complex_hermitian_constraint() @constraint(model, c, H in HermitianPSDCone()) @test constraint_object(c).func == [x[1, 1], x[1, 2], x[2, 2], 0.0] @test function_string(MIME("text/plain"), constraint_object(c)) == - "[x[1,1] x[1,2];\n x[1,2] x[2,2]]" + "[x[1,1] x[1,2]\n x[1,2] x[2,2]]" return end @@ -266,11 +266,11 @@ function test_complex_hermitian_inequality_constraint() @constraint(model, c, H >= 0, HermitianPSDCone()) @test constraint_object(c).func == [x[1, 1], x[1, 2], x[2, 2], 0.0] @test function_string(MIME("text/plain"), constraint_object(c)) == - "[x[1,1] x[1,2];\n x[1,2] x[2,2]]" + "[x[1,1] x[1,2]\n x[1,2] x[2,2]]" @constraint(model, c2, 0 <= H, HermitianPSDCone()) @test constraint_object(c2).func == [x[1, 1], x[1, 2], x[2, 2], 0.0] @test function_string(MIME("text/plain"), constraint_object(c2)) == - "[x[1,1] x[1,2];\n x[1,2] x[2,2]]" + "[x[1,1] x[1,2]\n x[1,2] x[2,2]]" return end diff --git a/test/test_print.jl b/test/test_print.jl index cffa031dc7b..88ff8ae49e7 100644 --- a/test/test_print.jl +++ b/test/test_print.jl @@ -597,10 +597,10 @@ Max a - b + 2 a1 - 10 x Subject to con : a + b - 10 c + c1 - 2 x $le 1 a*b $le 2 - [a b; + [a b b x] $inset $(PSDCone()) [a, b, c] $inset $(MOI.PositiveSemidefiniteConeTriangle(2)) - [a b; + [a b c x] $inset $(PSDCone()) [a, b, c, x] $inset $(MOI.PositiveSemidefiniteConeSquare(2)) soc : [-a + 1, u[1], u[2], u[3]] $inset $(MOI.SecondOrderCone(4)) @@ -873,7 +873,7 @@ function test_print_hermitian_psd_cone() H = Hermitian([x[1] 1im; -1im x[2]]) c = @constraint(model, H in HermitianPSDCone()) @test sprint(io -> show(io, MIME("text/plain"), c)) == - "[x[1] im;\n -im x[2]] $in_sym $(HermitianPSDCone())" + "[x[1] im\n -im x[2]] $in_sym $(HermitianPSDCone())" @test sprint(io -> show(io, MIME("text/latex"), c)) == "\$\$ \\begin{bmatrix}\nx_{1} & im\\\\\n-im & x_{2}\\\\\n\\end{bmatrix} \\in \\text{$(HermitianPSDCone())} \$\$" return