Commit 8b3507e0 authored by Adam Blank's avatar Adam Blank
Browse files

Update test_computer_placement.py

parent 8bb21c97
No related merge requests found
Pipeline #118939 canceled with stage
Showing with 2 additions and 1 deletion
+2 -1
......@@ -108,7 +108,8 @@ def test_generate_ship_coordinates(size, orientation):
@pytest.mark.parametrize('ship, ships, expected', apply_names('is_conflict', [True, True, False], conflicts[::10]))
def test_is_conflict(ship, ships, expected):
assert expected == is_conflict(ship, ships)
assert expected == is_conflict(ship, ships), f"there should " + (
"not " if not expected else "") + f"be a conflict between {ship} and {ships}"
@pytest.mark.parametrize('seed', apply_names('place_ships', ["seed = "], [[x] for x in range(1000, 3000)]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment