summaryrefslogtreecommitdiff
path: root/tests/test_enemies.py
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-29 14:29:45 +0200
committerViljami Ilola <+@hix.fi>2024-03-29 14:29:45 +0200
commitc75093304fb09dcdee61ea36169074828b1e210d (patch)
tree088cbede4e9f3bc34d7a393764f5c708600ec8d3 /tests/test_enemies.py
parent063628a3c493df902af9cef4f56f726a9d4ee906 (diff)
scaling and display tests
Diffstat (limited to 'tests/test_enemies.py')
-rw-r--r--tests/test_enemies.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_enemies.py b/tests/test_enemies.py
index aaf2b0c..315de88 100644
--- a/tests/test_enemies.py
+++ b/tests/test_enemies.py
@@ -25,4 +25,9 @@ class TestEnemies(unittest.TestCase):
def test_right_amount_of_enemies(self):
enemies = Enemies(count = 6)
- self.assertEqual(6, len(enemies.sprites())) \ No newline at end of file
+ self.assertEqual(6, len(enemies.sprites()))
+
+ def test_update_notcrashing(self):
+ enemies = Enemies(count = 6)
+ for _ in range(10000):
+ enemies.update(dt=100)