Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Aug 20, 2024
1 parent df47092 commit 23e09dc
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions test/symmetry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,9 @@ function _test_orthogonal_transformation_to(T::Type)
A2 = T[0 1; 1 0]
_test_orthogonal_transformation_to([1, 1], [A1, A2], [-A1, A2])
_test_orthogonal_transformation_to([2, 1], [A1, A2], [-A1, A2])
_test_oeri_goluskin_orth(T)
return
end

function _test_oeri_goluskin_orth(T)
A1 = T[1 0; 0 1]
A2 = T[-1 0; 0 -1]
A3 = T[1 0; 0 -1]
A4 = T[0.5 1
1 0.5]
A5 = T[-0.5 1
1 -0.5]
_test_orthogonal_transformation_to(ones(4), [A1, A2, A3, A4], [A1, A2, -A3, A5])
end

function test_orthogonal_transformation_to()
@testset "$T" for T in [Int, Float64, ComplexF64]
_test_orthogonal_transformation_to(T)
Expand Down Expand Up @@ -249,51 +237,6 @@ function test_block_diag_alpha()
return
end

# See https://github.com/jump-dev/SumOfSquares.jl/issues/381
function test_oeri_goluskin()
A1 = Matrix(1.0I, 16, 16)
A2 = Matrix(-1.0I, 16, 16)
A3 = Float64[
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1
]
A4 = sqrt.([
1 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 3 0 0 0 0 0 0 0 0 0 0
0 0 0 0 3 1 0 0 0 0 0 0 0 0 0 0
0 0 1 3 0 0 0 0 0 0 0 0 0 0 0 0
0 0 3 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 3 0 0 0 0 0 0 0 0
0 0 0 0 0 0 3 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 3 0 0 0 0 0 0
0 0 0 0 0 0 0 0 3 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 3 0 0
0 0 0 0 0 0 0 0 0 0 0 0 3 1 0 0
0 0 0 0 0 0 0 0 0 0 1 3 0 0 0 0
0 0 0 0 0 0 0 0 0 0 3 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 1
]) / 2
d = 2
_test_block_diag([A1, A2, A3, A4], d)
return
end

function runtests()
for name in names(@__MODULE__; all = true)
if startswith("$name", "test_")
Expand Down

0 comments on commit 23e09dc

Please sign in to comment.