Based on tests: MunkresTest.replace_infinites_4x4Case001_Success, MunkresTest.replace_infinites_4x4Case002_Success, MunkresTest.replace_infinites_4x4Case003_Success and MunkresTest.replace_infinites_4x4Case004_Success result of function replace_infinites is wrong.
It is looks like real bug (when determined min it not checked on equality to infinity, so max became infinity).
Based on tests:
MunkresTest.replace_infinites_4x4Case001_Success
,MunkresTest.replace_infinites_4x4Case002_Success
,MunkresTest.replace_infinites_4x4Case003_Success
andMunkresTest.replace_infinites_4x4Case004_Success
result of functionreplace_infinites
is wrong.It is looks like real bug (when determined
min
it not checked on equality toinfinity
, somax
becameinfinity
).