Skip to content

Commit

Permalink
Add a test case from the issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dourouc05 authored and Gnimuc committed Jan 2, 2023
1 parent 14a9ea5 commit f154198
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ end
@test cost == 71139
end

@testset "issue #18" begin
# These instances used to run into infinite loops.
weights = [1.0 Inf; Inf Inf]
result = Hungarian.munkres(weights)
assign, cost = hungarian(weights)
@test cost == prevfloat(Inf)
end

@testset "UInt8" begin
M=UInt8[67 228 135 197 244;
112 44 84 206 31;
Expand Down

0 comments on commit f154198

Please sign in to comment.