chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

schedules: Add unit tests for schedule generation #856

Closed tahini closed 4 months ago

tahini commented 4 months ago

fixes #844

Add tests for the generateForPeriod method with various use cases, with multiple directions/periods. These tests test the actual trip data, not just their numbers.

Make private some methods of the Schedule class. They don't need to be accessible from outside the class.