From 47fca5625d3ca1bd72ed084503ff5e6458274e79 Mon Sep 17 00:00:00 2001 From: alanwatsonforster <68709385+alanwatsonforster@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:31:37 -0600 Subject: [PATCH] Internal checks should be assertions. --- airpower/aircraft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airpower/aircraft.py b/airpower/aircraft.py index de5807f3..73233185 100644 --- a/airpower/aircraft.py +++ b/airpower/aircraft.py @@ -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: