kashesandr/CIC

Handle zero values

Closed this issue · 1 comments

When adding people who didn't pay a cent (value = 0) they are ignored in the result.

E.g. input values are:
Dimitri: 50
Peter: 40
Ann: 30
Tom: 0

Current result:
Ann gives 10.00 to Dimitri

Expected result:
Tom gives 10.00 to Peter
Tom gives 20.00 to Dimitri

Thank you!

Fixed with the commit 24fc971