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

Raise when data is both specification and section #120

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

leonlan
Copy link
Member

@leonlan leonlan commented Jun 24, 2024

This PR raises errors when parsing VRPLIB instances that uses the same keyword as specification and data section.

@leonlan leonlan requested review from N-Wouda June 24, 2024 17:58
Comment on lines +241 to +244
"SERVICE_TIME: 10",
"SERVICE_TIME_SECTION",
"1 20",
"2 20",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when the section comes before the specification? Does that also raise?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That raises an error, but it's not related to sections coming before specifications. I think we should be strict and add that too. I'll do that in another PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that works

@leonlan leonlan merged commit 9c99a4b into main Jun 24, 2024
5 checks passed
@leonlan leonlan deleted the raise-duplicate-specification-section branch June 24, 2024 18:21
@leonlan leonlan mentioned this pull request Jun 24, 2024
17 tasks
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.

2 participants