cl0ne/kpi-euro-diffusion

Fail fast

Closed this issue · 3 comments

cl0ne commented

It'll just return an empty list in that case.

https://github.com/cl0ne/euro-diffusion/blob/0c6495853144868453839c0651b6c53136e88ba4/main.py#L19-L20

the countries list is never supposed to be empty because if it is, the Simulator is not created

cl0ne commented

I know that and I don't see any reason why simulator cannot return empty list for empty input even if the client code won't cause this situation.