Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlan committed Jun 24, 2024
1 parent 0d756b7 commit 0a3be67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tests/parse/test_parse_vrplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ def test_parse_vrplib_do_not_compute_edge_weights():
assert_("edge_weight" not in actual)


def test_parse_vrplib_raises_when_both_specification_and_section():
def test_parse_vrplib_raises_data_specification_and_section():
"""
Tests if a ValueError is raised when a specification is also a section.
Tests that a ValueError is raised when data is included both as
specification and section.
"""
instance = "\n".join(
[
Expand Down
2 changes: 1 addition & 1 deletion vrplib/parse/parse_vrplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def parse_vrplib(text: str, compute_edge_weights: bool = True) -> Instance:

if section_name in instance:
name = section_name.upper()
msg = f"{name} is used both as a specification and a section."
msg = f"'{name}' is used both as a specification and a section."
raise ValueError(msg)

instance[section_name] = data # type: ignore
Expand Down

0 comments on commit 0a3be67

Please sign in to comment.