Closed kermit10000000 closed 6 years ago
so we removed the calling the method complitely from our code but this was not a good thing that will now cause us check when it stopped working manually(??) I don't know really how to come out of this problem...
Ok, i understand the problem, The issue was that in my class closest city it was assumed that it is made only after the calculations of happines etc. When you moved it away from main it was pointless and pointing always on 0. Instead of a decent number variable distanceToTheClosestCity set to 0 was crushing the functionality. Because of no unittests one change delivered crashed another. That is another reason why we always have to deliver unit tests with code. Even if we will delete/change code later we prevent by that destroying the functionality without even knowing it.
… and like the function stopped working properly. since the regio class was added i am not sure if backward compability was kept with regio. Maybe something this or someother else makes the class closest city to not work properly anymore.
Signed-off-by: Wojciech Mielczarek kermit10000000@gmail.com