Allow for too many interchanges

This commit is contained in:
Ilya Zverev 2017-11-02 23:55:52 +03:00
parent 6f605f49ac
commit 94d68d2236

View file

@ -1030,7 +1030,7 @@ class City:
msg = 'Found {} interchanges, expected {}'.format(
self.found_interchanges, self.num_interchanges)
self.error_if(self.num_interchanges != 0 and not
(0 <= (self.num_interchanges - self.found_interchanges) /
((self.num_interchanges - self.found_interchanges) /
self.num_interchanges <= ALLOWED_TRANSFERS_MISMATCH), msg)
self.found_networks = len(networks)