Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Feb 27, 2024
1 parent 36e8a12 commit f9b46fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/PermMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end
@testset "setindex" begin
pm = PermMatrix([3, 2, 4, 1], [0.0, 0.0, 0.0, 0.0])
pm[3, 4] = 1.0
@test_throws BoundsError pm[3, 1] = 1.0
@test_throws AssertionError pm[3, 1] = 1.0
@test pm[3, 4] == 1.0
end

Expand All @@ -109,4 +109,4 @@ end
A = randn(ComplexF64, 4, 4)
pm = PermMatrix([3, 2, 4, 1], [0.2im, 0.6im, 0.1, 0.3])
@test A * pm A * Matrix(pm)
end
end
4 changes: 2 additions & 2 deletions test/PermMatrixCSC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ end
@testset "setindex" begin
pm = PermMatrix([3, 2, 4, 1], [0.0, 0.0, 0.0, 0.0])
pm[3, 4] = 1.0
@test_throws BoundsError pm[3, 1] = 1.0
@test_throws AssertionError pm[3, 1] = 1.0
@test pm[3, 4] == 1.0
end

Expand All @@ -111,4 +111,4 @@ end
A = randn(ComplexF64, 4, 4)
pm = PermMatrix([3, 2, 4, 1], [0.2im, 0.6im, 0.1, 0.3])
@test A * pm A * Matrix(pm)
end
end

0 comments on commit f9b46fc

Please sign in to comment.