Skip to content

Commit

Permalink
Update smoke_tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devw4r committed Jul 12, 2023
1 parent 60e1fde commit 18d7ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/smoke_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,22 @@ def compute_path_length(path):
print("Zone check succeeded")

should_fail = map_data.line_of_sight(16268.3809, 16812.7148, 36.1483,
16266.5781, 16782.623, 38.5035019)
16266.5781, 16782.623, 38.5035019, False)

if should_fail:
raise Exception("Should-fail LoS check passed")

print("Should-fail LoS check failed correctly")

should_pass = map_data.line_of_sight(16873.2168, 16926.9551, 15.9072571,
16987.4277, 16950.0742, 69.4590912)
16987.4277, 16950.0742, 69.4590912, False)
if should_pass is False:
raise Exception("Should-pass LoS check failed")

print("Should-pass LoS check succeeded")

should_pass_doodad = map_data.line_of_sight(16275.6895, 16853.9023, 37.8341751,
16251.0332, 16858.2988, 34.9305573)
16251.0332, 16858.2988, 34.9305573, False)
if should_pass_doodad is False:
raise Exception("Should-pass doodad LoS check failed")

Expand Down Expand Up @@ -139,4 +139,4 @@ def main():

if __name__ == "__main__":
main()
sys.exit(0)
sys.exit(0)

0 comments on commit 18d7ad5

Please sign in to comment.