Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion checks/itertools/itertools3.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert coordinates == [(0, "low"), (0, "high"), (1, "low"), (1, "high")]
assert coordinates == [(0, "low"), (0, "high"), (1, "low"), (1, "high")], f"Expected [(0, 'low'), (0, 'high'), (1, 'low'), (1, 'high')], got {coordinates}"
print("itertools3 ok")
2 changes: 1 addition & 1 deletion checks/itertools/itertools4.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert grouped == {"fruit": ["apple", "pear"], "veg": ["carrot"]}
assert grouped == {"fruit": ["apple", "pear"], "veg": ["carrot"]}, f"Expected {{'fruit': ['apple', 'pear'], 'veg': ['carrot']}}, got {grouped}"
print("itertools4 ok")
2 changes: 1 addition & 1 deletion checks/itertools/itertools5.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert running_totals == [3, 7, 12, 18]
assert running_totals == [3, 7, 12, 18], f"Expected [3, 7, 12, 18], got {running_totals}"
print("itertools5 ok")
2 changes: 1 addition & 1 deletion checks/itertools/itertools6.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert repeated == ["red", "blue", "red", "blue", "red", "blue"]
assert repeated == ["red", "blue", "red", "blue", "red", "blue"], f"Expected ['red', 'blue', 'red', 'blue', 'red', 'blue'], got {repeated}"
print("itertools6 ok")
2 changes: 1 addition & 1 deletion checks/itertools/itertools7.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert pairs == [("a", 1), ("b", "?"), ("c", "?")]
assert pairs == [("a", 1), ("b", "?"), ("c", "?")], f"Expected [('a', 1), ('b', '?'), ('c', '?')], got {pairs}"
print("itertools7 ok")
4 changes: 2 additions & 2 deletions checks/itertools/itertools8.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
assert flattened == [1, 2, 3, 4, 5]
assert adjacent_pairs == [(1, 2), (2, 3), (3, 4), (4, 5)]
assert flattened == [1, 2, 3, 4, 5], f"Expected [1, 2, 3, 4, 5], got {flattened}"
assert adjacent_pairs == [(1, 2), (2, 3), (3, 4), (4, 5)], f"Expected [(1, 2), (2, 3), (3, 4), (4, 5)], got {adjacent_pairs}"
print("itertools8 ok")