Skip to content

Commit

Permalink
Fix test for cover as was checking the wrong column
Browse files Browse the repository at this point in the history
Was checking column 6 which is priority predecessors, instead of 8 which is leftover space
  • Loading branch information
Rosejoycrocker committed Feb 9, 2024
1 parent f6ba8c1 commit 61367b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/mcda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ end

@test !any(isnan.(A)) || "NaNs found in decision matrix"
@test !any(isinf.(A)) || "Infs found in decision matrix"

@test A[end, 6] == 0.0 || "Site with 0 max cover should be ignored but was not"
@test A[end, 8] == 0.0 || "Site with 0 max cover should be ignored but was not"
end

@testset "MCDA seed matrix creation" begin
Expand Down

0 comments on commit 61367b7

Please sign in to comment.