Skip to content

Commit

Permalink
test that for each choke a main line actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
spudde123 committed Dec 26, 2020
1 parent a095c5e commit dcef428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_c_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ def test_c_extension():
assert(len(map_info.overlord_spots) == 2)
assert(len(map_info.chokes) == 5)

# testing that the main line actually exists, was a previous bug
for line in map_info.chokes:
assert(line.main_line[0] != line.main_line[1])

0 comments on commit dcef428

Please sign in to comment.