-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] check stop time growing #768
Conversation
src/model.rs
Outdated
let collections = collections(); | ||
let mut vj = create_vehicle_journey_with( | ||
"trip:1", | ||
vec!["stop_point:1", "stop_point:2"], | ||
&collections, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of these custom functions, you could now use the model_builder
to build the model you want.
src/model.rs
Outdated
let shift = Time::new(sequence as u32, 0, 0); | ||
stop_time.departure_time = stop_time.departure_time + shift; | ||
stop_time.arrival_time = stop_time.arrival_time + shift; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me a minute to understand what was happening here. I usually think it's a good idea to make a test as dumb as possible... because if your test is buggy, then nothing is testing the test!
d03225e
to
5556d33
Compare
5556d33
to
a21f99e
Compare
a21f99e
to
a3faecf
Compare
ref: ND-1355