Skip to content

Commit

Permalink
Internal checks should be assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwatsonforster committed Sep 23, 2023
1 parent eb5ee74 commit 47fca56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airpower/aircraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ def next(self, actions):
break

assert self._ifp <= self._nfp
aphex.checkisvalidposition(self._x, self._y)
aphex.checkisvalidfacing(self._x, self._y, self._facing)
apaltitude.checkisvalidaltitude(self._altitude)
assert aphex.isvalidposition(self._x, self._y)
assert aphex.isvalidfacing(self._x, self._y, self._facing)
assert apaltitude.isvalidaltitude(self._altitude)

if self._ifp == self._nfp:

Expand Down

0 comments on commit 47fca56

Please sign in to comment.