Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
itzpr3d4t0r committed May 23, 2024
1 parent 0913ad6 commit 5f32cb2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/geometry_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def test_area_update(self):
self.assertEqual(c.area, math.pi * 4)

c.r_sqr = 100
self.assertEqual(c.area, math.pi * (10 ** 2))
self.assertEqual(c.area, math.pi * (10**2))

def test_area_invalid_value(self):
"""Ensures the area handles invalid values correctly."""
Expand Down Expand Up @@ -1175,8 +1175,13 @@ def test_contains_argnum(self):
def test_contains_return_type(self):
"""Tests if the function returns the correct type"""
c = Circle(10, 10, 4)
items = [Circle(3, 4, 15), (0, 0), Vector2(0, 0), Rect(0, 0, 10, 10),
FRect(0, 0, 10, 10)]
items = [
Circle(3, 4, 15),
(0, 0),
Vector2(0, 0),
Rect(0, 0, 10, 10),
FRect(0, 0, 10, 10),
]

for item in items:
self.assertIsInstance(c.contains(item), bool)
Expand Down

0 comments on commit 5f32cb2

Please sign in to comment.