Skip to content

Commit

Permalink
Fix consistency of testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhurba01 committed Oct 4, 2023
1 parent 3892aac commit 168fa02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/legate/util/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,21 @@ def test_individual_ordered(
def test_range(self, val: str, expected: tuple[int, ...]) -> None:
assert m.extract_values(val) == expected

testdata_range_ordered = {
testdata_range_ordered = [
("2-3,0-1", (0, 1, 2, 3)),
("0-1,4-5,2-3", (0, 1, 2, 3, 4, 5)),
}
]

@pytest.mark.parametrize("val,expected", testdata_range_ordered)
def test_range_ordered(self, val: str, expected: tuple[int, ...]) -> None:
assert m.extract_values(val) == expected

testdata_mixed = {
testdata_mixed = [
("0,1-2", (0, 1, 2)),
("1-2,0", (0, 1, 2)),
("0,1-2,3,4-5,6", (0, 1, 2, 3, 4, 5, 6)),
("5-6,4,1-3,0", (0, 1, 2, 3, 4, 5, 6)),
}
]

@pytest.mark.parametrize("val,expected", testdata_mixed)
def test_mixed(self, val: str, expected: tuple[int, ...]) -> None:
Expand Down

0 comments on commit 168fa02

Please sign in to comment.