Skip to content
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

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Conversation

patochectp
Copy link
Member

ref: ND-1355

src/model.rs Outdated
Comment on lines 2766 to 2771
let collections = collections();
let mut vj = create_vehicle_journey_with(
"trip:1",
vec!["stop_point:1", "stop_point:2"],
&collections,
);
Copy link
Contributor

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
Comment on lines 2774 to 2776
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;
Copy link
Contributor

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!

@patochectp patochectp force-pushed the check_stop_time_growing branch from d03225e to 5556d33 Compare April 23, 2021 11:04
@ArnaudOggy ArnaudOggy self-requested a review April 23, 2021 14:55
@patochectp patochectp force-pushed the check_stop_time_growing branch from 5556d33 to a21f99e Compare April 23, 2021 15:29
@ArnaudOggy ArnaudOggy requested a review from woshilapin April 23, 2021 15:39
ArnaudOggy
ArnaudOggy previously approved these changes Apr 23, 2021
woshilapin
woshilapin previously approved these changes Apr 26, 2021
@patochectp patochectp dismissed stale reviews from woshilapin and ArnaudOggy via a3faecf April 26, 2021 14:55
@patochectp patochectp force-pushed the check_stop_time_growing branch from a21f99e to a3faecf Compare April 26, 2021 14:55
@patochectp patochectp merged commit 3d46c78 into master Apr 26, 2021
@patochectp patochectp deleted the check_stop_time_growing branch April 26, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants